<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <parent>
    <relativePath>../poms/compiled/</relativePath>
    <groupId>org.opennms.features.topology.build</groupId>
    <artifactId>compiled-bundle-settings</artifactId>
    <version>14.0.2</version>
  </parent>

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.opennms.features.topology</groupId>
  <artifactId>widgetset</artifactId>

  <name>${bundle.symbolicName}</name>

  <packaging>bundle</packaging>
  
  <properties>
    <bundle.symbolicName>org.opennms.features.topology.widgetset</bundle.symbolicName>
    <bundle.namespace>org.opennms.features.topology.widgetset</bundle.namespace>
  </properties>

  <build>
    <plugins>
        <plugin>
            <groupId>com.vaadin</groupId>
            <artifactId>vaadin-maven-plugin</artifactId>
            <version>${vaadin.plugin.version}</version>
            <configuration>
                <extraJvmArgs>-Xmx1g -Xss1024k</extraJvmArgs>
                <webappDirectory>${basedir}/target/gwt/VAADIN/widgetsets</webappDirectory>
                <hostedWebapp>${basedir}/target/gwt/VAADIN/widgetsets</hostedWebapp>
                <noServer>true</noServer>
                <draftCompile>false</draftCompile>
                <compileReport>false</compileReport>
                <style>OBF</style>
                <strict>true</strict>
                <runTarget>http://localhost:8980/opennms/topology</runTarget>
                <gwtSdkFirstInClasspath>true</gwtSdkFirstInClasspath>
                <!-- Bind the codeserver to all local addresses -->
                <bindAddress>0.0.0.0</bindAddress>
            </configuration>
            <executions>
                <execution>
                    <id>goals</id>
                    <configuration>
                        <!-- if you don't specify any modules, the plugin will find them -->
                        <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module>
                            </modules> -->
                    </configuration>
                    <goals>
                        <goal>resources</goal>
                        <goal>update-widgetset</goal>
                        <goal>compile</goal>
                    </goals>
                </execution>
                <execution>
                    <id>run-codeserver</id>
                    <goals>
                        <goal>run-codeserver</goal>
                    </goals>
                </execution>
            </executions>
                <dependencies>
                    <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-dev</artifactId>
                        <version>${gwtVersion}</version>
                    </dependency>
                    <dependency>
                        <groupId>com.google.gwt</groupId>
                        <artifactId>gwt-user</artifactId>
                        <version>${gwtVersion}</version>
                    </dependency>
                </dependencies>
        </plugin>
      
    </plugins>

  </build>

  <dependencies>

    <dependency>
      <groupId>org.opennms.osgi.features.topology</groupId>
      <artifactId>vaadin</artifactId>
      <type>pom</type>
    </dependency>
    
    <dependency>
      <groupId>org.opennms.features.topology</groupId>
      <artifactId>app</artifactId>
      <version>${project.version}</version>
    </dependency>
<!--     <dependency> -->
<!--         <groupId>org.opennms.features.topology</groupId> -->
<!--         <artifactId>ssh</artifactId> -->
<!--         <version>${project.version}</version> -->
<!--     </dependency> -->
    
    <!-- these are required in order to ensure that the TopologyComponent class can load to it can be checked for annotations -->
    <dependency>
      <groupId>org.opennms.features.topology</groupId>
      <artifactId>api</artifactId>
      <version>${project.version}</version>
      <scope>provided</scope>
    </dependency>

  </dependencies>
</project>
