<?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">
  <parent>
    <groupId>org.opennms</groupId>
    <artifactId>integration-tests</artifactId>
    <version>26.0.0-SNAPSHOT</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <artifactId>org.opennms.integration-tests.config</artifactId>
  <packaging>jar</packaging>
  <name>OpenNMS :: Integration Tests :: Config</name>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <!-- Copy all Pax Exam artifacts into the Karaf repository -->
          <execution>
            <id>copy</id>
            <phase>process-test-classes</phase>
            <goals>
              <goal>copy-dependencies</goal>
            </goals>
            <configuration>
              <useRepositoryLayout>true</useRepositoryLayout>
              <excludeTypes>tar.gz</excludeTypes>
              <!-- TODO: Remove this when we add tests for OpenNMS features -->
              <excludeGroupIds>org.opennms</excludeGroupIds>
              <outputDirectory>${project.build.directory}/paxexam/test-repo</outputDirectory>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <!--
        Generate the META-INF/maven/dependencies.properties that is required by the
        Maven URL resolver.
      -->
      <plugin>
        <groupId>org.apache.servicemix.tooling</groupId>
        <artifactId>depends-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-depends-file</id>
            <goals>
              <goal>generate-depends-file</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin> 
        <artifactId>maven-clean-plugin</artifactId> 
        <executions> 
          <execution> 
            <id>cleanup-assembly</id> 
            <phase>post-integration-test</phase> 
            <goals> 
              <goal>clean</goal> 
            </goals> 
            <configuration> 
              <excludeDefaultDirectories>true</excludeDefaultDirectories> 
              <filesets> 
                <fileset> 
                  <directory>${project.build.directory}/paxexam</directory> 
                </fileset> 
              </filesets> 
            </configuration> 
          </execution> 
        </executions> 
      </plugin>     
    </plugins>
  </build>

  <dependencies>
    <dependency>
      <groupId>org.opennms.core.test-api</groupId>
      <artifactId>org.opennms.core.test-api.lib</artifactId>
    </dependency>
    <dependency>
      <groupId>org.opennms.core.test-api</groupId>
      <artifactId>org.opennms.core.test-api.xml</artifactId>
    </dependency>

    <!-- Contains beans for ServiceConfigurationPublicConstructorTest -->
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-asterisk</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-jetty</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.events</groupId>
      <artifactId>org.opennms.features.events.traps</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.poller</groupId>
      <artifactId>org.opennms.features.poller.remote</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features</groupId>
      <artifactId>org.opennms.features.discovery</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.enlinkd</groupId>
      <artifactId>org.opennms.features.enlinkd.daemon</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>

    <!-- Contains model code for the WillItUnmarshall test -->
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-config-model</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features</groupId>
      <artifactId>org.opennms.features.jdbc-collector</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-vmware</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-alarm-northbounder-bsf</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-alarm-northbounder-drools</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-alarm-northbounder-email</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-alarm-northbounder-jms</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-alarm-northbounder-syslog</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms</groupId>
      <artifactId>opennms-alarm-northbounder-snmptrap</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.search</groupId>
      <artifactId>org.opennms.features.search.providers</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>org.opennms.features</groupId>
      <artifactId>org.opennms.features.ifttt</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.ticketing</groupId>
      <artifactId>org.opennms.features.ticketing.daemon</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <!--
    <dependency>
      <groupId>org.opennms.features</groupId>
      <artifactId>org.opennms.features.access-point-monitor</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    -->
    <dependency>
      <groupId>org.opennms.features.reporting</groupId>
      <artifactId>org.opennms.features.reporting.model</artifactId>
      <scope>test</scope>
    </dependency>

    <!-- OpenNMS Karaf container so that we can crank it up with the pax-exam-karaf unit test framework -->
    <!--
    <dependency>
      <groupId>org.opennms.container</groupId>
      <artifactId>karaf</artifactId>
      <type>tar.gz</type>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    -->
    <dependency>
      <groupId>org.opennms.core.test-api</groupId>
      <artifactId>org.opennms.core.test-api.karaf</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.karaf.features</groupId>
      <artifactId>standard</artifactId>
      <version>${karafVersion}</version>
      <classifier>features</classifier>
      <type>xml</type>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.topology</groupId>
      <artifactId>org.opennms.features.topology.api</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features</groupId>
      <artifactId>org.opennms.features.wsman</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.flows</groupId>
      <artifactId>org.opennms.features.flows.elastic</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.jest</groupId>
      <artifactId>org.opennms.features.jest.client</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.opennms.features.telemetry.config</groupId>
      <artifactId>org.opennms.features.telemetry.config.jaxb</artifactId>
      <version>${project.version}</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>xmlunit</groupId>
      <artifactId>xmlunit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>
