Enable archetype self testing 41/65941/5
authorMichael Vorburger <vorburger@redhat.com>
Mon, 27 Nov 2017 18:24:25 +0000 (19:24 +0100)
committerRobert Varga <nite@hq.sk>
Thu, 18 Jan 2018 21:54:08 +0000 (21:54 +0000)
this requires https://git.opendaylight.org/gerrit/#/c/65940/

see https://jira.opendaylight.org/browse/CONTROLLER-1799

Change-Id: I1cecbad50abf595f164463deb55bdcda797f5a9e
Signed-off-by: Michael Vorburger <vorburger@redhat.com>
opendaylight/archetypes/pom.xml

index 0b2ede4b2ef457db256ee061b680628942b9a9ae..db50dcb8ab86eb236608bfef06dff7eb1384c403 100644 (file)
   <version>0.7.0-SNAPSHOT</version>
   <packaging>pom</packaging>
 
-  <properties>
-    <!-- TODO Bump maven-archetype-plugin version in odlparent instead of here: -->
-    <maven.archetype.version>3.0.1</maven.archetype.version>
-    <!-- TODO Figure out why SFT fails on archetype self test with:
-         ArtifactResolutionException: Error resolving artifact org.opendaylight.odlparent:opendaylight-karaf-empty:zip:3.0.2 -->
-    <archetype.test.skip>true</archetype.test.skip>
-  </properties>
+  <dependencies>
+    <dependency>
+      <!-- Required for https://jira.opendaylight.org/browse/CONTROLLER-1799
+           but this is only half of the solution; the other half is setting org.ops4j.pax.url.mvn.localRepository -->
+      <groupId>org.opendaylight.odlparent</groupId>
+      <artifactId>opendaylight-karaf-empty</artifactId>
+      <version>3.0.2</version>
+      <type>zip</type>
+    </dependency>
+  </dependencies>
 
   <build>
     <extensions>
       <extension>
         <groupId>org.apache.maven.archetype</groupId>
         <artifactId>archetype-packaging</artifactId>
-        <version>${maven.archetype.version}</version>
+        <version>${maven.archetype.plugin.version}</version>
       </extension>
     </extensions>
 
@@ -42,7 +45,6 @@
       </plugin>
       <plugin>
         <artifactId>maven-help-plugin</artifactId>
-        <version>2.2</version>
         <configuration>
           <output>${project.build.directory}/effective-settings.xml</output>
         </configuration>
@@ -58,7 +60,6 @@
       </plugin>
       <plugin>
         <artifactId>maven-archetype-plugin</artifactId>
-        <version>${maven.archetype.version}</version>
         <configuration>
           <settingsFile>${project.build.directory}/effective-settings.xml</settingsFile>
         </configuration>