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

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

    <groupId>org.opennms.features.vaadin-components</groupId>
    <artifactId>graph</artifactId>

    <properties>
        <bundle.symbolicName>org.opennms.features.vaadin.components.graph</bundle.symbolicName>
        <bundle.namespace>org.opennms.features.vaadin.components.graph</bundle.namespace>
    </properties>

    <name>OpenNMS :: Features :: Vaadin :: Components :: Graph</name>
    <packaging>bundle</packaging>

    <build>
      <plugins>
        <plugin>
          <artifactId>maven-resources-plugin</artifactId>
          <version>2.7</version>
          <executions>
            <execution>
              <id>copy-resources</id>
              <phase>validate</phase>
              <goals>
                <goal>copy-resources</goal>
              </goals>
              <configuration>
                <outputDirectory>${basedir}/target/classes/org/opennms/features/vaadin/components/graph</outputDirectory>
                <resources>
                  <resource>
                    <directory>../../../opennms-webapp/src/main/webapp/js</directory>
                    <includes>
                      <include>graph.js</include>
                      <include>global.js</include>
                    </includes>
                  </resource>
                  <resource>
                    <directory>../../../opennms-webapp/src/main/webapp/lib/jquery/dist</directory>
                    <includes>
                      <include>jquery.js</include>
                    </includes>
                  </resource>
                  <resource>
                    <directory>../../../opennms-webapp/src/main/webapp/lib/requirejs</directory>
                    <includes>
                      <include>require.js</include>
                    </includes>
                  </resource>
                </resources>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.opennms.features</groupId>
            <artifactId>vaadin</artifactId>
            <type>pom</type>
        </dependency>
        <dependency>
            <groupId>org.opennms.core</groupId>
            <artifactId>org.opennms.core.lib</artifactId>
        </dependency>
        <dependency>
            <groupId>org.opennms.features.themes</groupId>
            <artifactId>dashboard-theme</artifactId>
            <version>${project.version}</version>
        </dependency>

    </dependencies>

</project>
