Disable archetype self testing
[controller.git] / opendaylight / archetypes / pom.xml
index c1b74636d26d5bdcc9a11d3d385090d526342a0b..d580732092777d15072dd5a8e4a535a98c1b11da 100644 (file)
@@ -3,40 +3,41 @@
   <modelVersion>4.0.0</modelVersion>
 
   <parent>
-    <groupId>org.opendaylight.controller</groupId>
-    <artifactId>commons.opendaylight</artifactId>
-    <version>1.7.0-SNAPSHOT</version>
-    <relativePath>../commons/opendaylight</relativePath>
+    <groupId>org.opendaylight.odlparent</groupId>
+    <artifactId>odlparent</artifactId>
+    <version>3.0.2</version>
+    <relativePath/>
   </parent>
 
   <groupId>org.opendaylight.controller.archetypes</groupId>
   <artifactId>archetypes-parent</artifactId>
-  <version>0.4.0-SNAPSHOT</version>
+  <version>0.7.0-SNAPSHOT</version>
   <packaging>pom</packaging>
 
+  <properties>
+    <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>2.4</version>
+        <version>${maven.archetype.plugin.version}</version>
       </extension>
     </extensions>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <artifactId>maven-archetype-plugin</artifactId>
-          <version>2.4</version>
-          <dependencies>
-            <dependency>
-              <groupId>commons-lang</groupId>
-              <artifactId>commons-lang</artifactId>
-              <version>2.6</version>
-            </dependency>
-          </dependencies>
-        </plugin>
-      </plugins>
-    </pluginManagement>
+
     <plugins>
       <plugin>
           <groupId>org.apache.maven.plugins</groupId>
             <addDefaultExcludes>false</addDefaultExcludes>
           </configuration>
       </plugin>
+      <plugin>
+        <artifactId>maven-help-plugin</artifactId>
+        <configuration>
+          <output>${project.build.directory}/effective-settings.xml</output>
+        </configuration>
+        <executions>
+          <execution>
+            <!-- This makes sure we run before maven-archetype-plugin -->
+            <phase>pre-integration-test</phase>
+            <goals>
+              <goal>effective-settings</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-archetype-plugin</artifactId>
+        <configuration>
+          <settingsFile>${project.build.directory}/effective-settings.xml</settingsFile>
+        </configuration>
+        <dependencies>
+          <dependency>
+            <groupId>commons-lang</groupId>
+            <artifactId>commons-lang</artifactId>
+            <version>2.6</version>
+          </dependency>
+        </dependencies>
+      </plugin>
     </plugins>
   </build>
 
   <modules>
-    <module>odl-model-project</module>
-    <module>opendaylight-configfile-archetype</module>
-    <module>opendaylight-karaf-distro-archetype</module>
-    <module>opendaylight-karaf-features</module>
     <module>opendaylight-startup</module>
   </modules>
 </project>