<parent>
<groupId>org.opendaylight.odlparent</groupId>
- <artifactId>odlparent</artifactId>
+ <artifactId>untested-single-feature-parent</artifactId>
<version>1.8.0-SNAPSHOT</version>
- <relativePath>../odlparent</relativePath>
+ <relativePath>../untested-single-feature-parent</relativePath>
</parent>
<groupId>org.opendaylight.odlparent</groupId>
<properties>
<karaf.version>${karaf4.version}</karaf.version>
<jacoco.skip>true</jacoco.skip>
+ <skip.karaf.featureTest>false</skip.karaf.featureTest>
</properties>
+ <dependencies>
+ <!-- Test the generated features.xml -->
+ <dependency>
+ <groupId>org.opendaylight.odlparent</groupId>
+ <artifactId>features4-test</artifactId>
+ <version>1.8.0-SNAPSHOT</version>
+ <scope>test</scope>
+ </dependency>
+ <!-- Force SLF4J to test scope -->
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>slf4j-api</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
<build>
<plugins>
<plugin>
- <!-- This generates the META-INF/maven/dependencies.properties file
- which is required by the versionAsInProject() used in SingleFeatureTest -->
- <groupId>org.apache.servicemix.tooling</groupId>
- <artifactId>depends-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>org.apache.karaf.tooling</groupId>
- <artifactId>karaf-maven-plugin</artifactId>
- <version>${karaf4.plugin.version}</version>
- <extensions>true</extensions>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${maven.surefire.version}</version>
<configuration>
- <simplifyBundleDependencies>true</simplifyBundleDependencies>
- <excludedArtifactIds>
- <excludedArtifactId>slf4j-api</excludedArtifactId>
- <excludedArtifactId>jcl-over-slf4j</excludedArtifactId>
- </excludedArtifactIds>
+ <dependenciesToScan>
+ <dependency>org.opendaylight.odlparent:features4-test</dependency>
+ </dependenciesToScan>
+ <additionalClasspathElements>
+ <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
+ </additionalClasspathElements>
+ <skip>${skip.karaf.featureTest}</skip>
</configuration>
+ <executions>
+ <execution>
+ <phase>test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
- <profiles>
- <profile>
- <id>sft</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <dependencies>
- <!-- Test the generated features.xml -->
- <dependency>
- <groupId>org.opendaylight.odlparent</groupId>
- <artifactId>features4-test</artifactId>
- <version>1.8.0-SNAPSHOT</version>
- <scope>test</scope>
- </dependency>
- <!-- Force SLF4J to test scope -->
- <dependency>
- <groupId>org.slf4j</groupId>
- <artifactId>slf4j-api</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${maven.surefire.version}</version>
- <configuration>
- <dependenciesToScan>
- <dependency>org.opendaylight.odlparent:features4-test</dependency>
- </dependenciesToScan>
- <additionalClasspathElements>
- <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
- </additionalClasspathElements>
- </configuration>
- <executions>
- <execution>
- <phase>test</phase>
- <goals>
- <goal>test</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
<!--
Maven Site Configuration
</site>
</distributionManagement>
-</project>
\ No newline at end of file
+</project>