Bump versions to 13.1.0-SNAPSHOT
[odlparent.git] / abstract-feature-parent / pom.xml
index 7f202225d13d0db25d34daada8b1e2387ed4b55e..d81de74927028d37b84191089824a58711ab615c 100644 (file)
@@ -19,7 +19,7 @@
     <parent>
         <groupId>org.opendaylight.odlparent</groupId>
         <artifactId>odlparent</artifactId>
-        <version>12.0.6</version>
+        <version>13.1.0-SNAPSHOT</version>
         <relativePath>../odlparent</relativePath>
     </parent>
 
@@ -43,7 +43,7 @@
         <dependency>
             <groupId>org.opendaylight.odlparent</groupId>
             <artifactId>features-test</artifactId>
-            <version>12.0.6</version>
+            <version>13.1.0-SNAPSHOT</version>
             <scope>test</scope>
         </dependency>
         <dependency>
             <artifactId>slf4j-api</artifactId>
             <scope>test</scope>
         </dependency>
-        <!-- required due to https://jira.opendaylight.org/browse/ODLPARENT-136 -->
-        <!--dependency>
-            <groupId>org.osgi</groupId>
-            <artifactId>osgi.cmpn</artifactId>
-            <scope>test</scope>
-        </dependency-->
     </dependencies>
 
     <build>
                 <groupId>org.apache.servicemix.tooling</groupId>
                 <artifactId>depends-maven-plugin</artifactId>
             </plugin>
+            <plugin>
+                <!-- Lists feature dependencies defined in test scope to be pre-installed in karaf when SFT is executed.
+                     Resolved dependencies also include absolute path to artifacts within local repository so
+                     feature names (required for feature:install) can be retrieved. -->
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <!-- execute before test phase -->
+                        <phase>test-compile</phase>
+                        <goals>
+                            <goal>list</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <configuration>
+                    <skip>${skip.karaf.featureTest}</skip>
+                    <includeClassifiers>features</includeClassifiers>
+                    <includeTypes>xml</includeTypes>
+                    <excludeScope>compile</excludeScope>
+                    <!-- exclude SFT's own dependency features -->
+                    <excludeGroupIds>org.apache.karaf.features</excludeGroupIds>
+                    <outputAbsoluteArtifactFilename>true</outputAbsoluteArtifactFilename>
+                    <outputFile>${project.build.directory}/test-features</outputFile>
+                </configuration>
+            </plugin>
             <plugin>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <configuration>
                     <systemPropertyVariables>
                         <!-- Use the same repository for Pax Exam as is used for Maven -->
                         <org.ops4j.pax.url.mvn.localRepository>${settings.localRepository}</org.ops4j.pax.url.mvn.localRepository>
+                        <!-- Test scope features resolved by maven-dependency-plugin (above) -->
+                        <featureTest.dependencies.list>${project.build.directory}/test-features</featureTest.dependencies.list>
                     </systemPropertyVariables>
 
                     <!-- Disable argLine if present, but pass it to SFT -->
         <profile>
             <id>disable-sft</id>
             <activation>
-                <!-- Karaf does not have jre.properties for JDK19+ just yet -->
-                <jdk>[19,)</jdk>
+                <!-- Karaf does not have jre.properties for JDK22+ just yet -->
+                <jdk>[22,)</jdk>
             </activation>
 
             <properties>