Revert "Add odlparent relativepath relative to autorelease"
[integration/distribution.git] / distributions / test / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5       <groupId>org.opendaylight.integration</groupId>
6       <artifactId>root</artifactId>
7       <version>0.3.0-SNAPSHOT</version>
8       <relativePath>../../</relativePath>
9    </parent>
10   <artifactId>distribution-test</artifactId>
11   <packaging>pom</packaging>
12
13   <properties>
14     <branding.version>1.1.0-SNAPSHOT</branding.version>
15     <karaf.resources.version>1.5.0-SNAPSHOT</karaf.resources.version>
16   </properties>
17
18   <dependencies>
19     <dependency>
20       <!-- scope is compile so all features (there is only one) are installed
21             into startup.properties and the feature repo itself is not installed -->
22       <groupId>org.apache.karaf.features</groupId>
23       <artifactId>framework</artifactId>
24       <version>${karaf.version}</version>
25       <type>kar</type>
26       <exclusions>
27         <exclusion>
28           <groupId>org.osgi</groupId>
29           <artifactId>org.osgi.core</artifactId>
30         </exclusion>
31         <exclusion>
32           <groupId>org.apache.sshd</groupId>
33           <artifactId>sshd-core</artifactId>
34         </exclusion>
35       </exclusions>
36     </dependency>
37     <!-- scope is runtime so the feature repo is listed in the features
38       service config file, and features may be installed using the
39       karaf-maven-plugin configuration -->
40     <dependency>
41       <groupId>org.apache.karaf.features</groupId>
42       <artifactId>standard</artifactId>
43       <version>${karaf.version}</version>
44       <classifier>features</classifier>
45       <type>xml</type>
46       <scope>runtime</scope>
47     </dependency>
48
49     <!-- ODL Branding -->
50     <dependency>
51       <groupId>org.opendaylight.controller</groupId>
52       <artifactId>karaf.branding</artifactId>
53       <version>${branding.version}</version>
54       <scope>compile</scope>
55     </dependency>
56
57     <!-- Resources needed -->
58     <dependency>
59       <groupId>org.opendaylight.controller</groupId>
60       <artifactId>opendaylight-karaf-resources</artifactId>
61       <version>${karaf.resources.version}</version>
62     </dependency>
63
64     <!-- integration feature -->
65     <dependency>
66       <artifactId>features-integration-test</artifactId>
67       <groupId>org.opendaylight.integration</groupId>
68       <version>${project.version}</version>
69       <classifier>features</classifier>
70       <type>xml</type>
71       <scope>runtime</scope>
72     </dependency>
73
74     <!-- External application -->
75     <dependency>
76       <groupId>org.opendaylight.vtn</groupId>
77       <artifactId>distribution.vtn-coordinator</artifactId>
78       <version>6.0.0.0-SNAPSHOT</version>
79       <type>tar.bz2</type>
80       <classifier>bin</classifier>
81       <exclusions>
82         <exclusion>
83           <groupId>com.google.code.gson</groupId>
84           <artifactId>gson</artifactId>
85         </exclusion>
86         <exclusion>
87           <groupId>commons-codec</groupId>
88           <artifactId>commons-codec</artifactId>
89         </exclusion>
90         <exclusion>
91           <groupId>org.json</groupId>
92           <artifactId>json</artifactId>
93         </exclusion>
94       </exclusions>
95     </dependency>
96
97     <dependency>
98       <groupId>org.opendaylight.vtn</groupId>
99       <artifactId>distribution.vtn-coordinator</artifactId>
100       <version>6.0.0.0-SNAPSHOT</version>
101       <type>txt</type>
102       <classifier>README</classifier>
103       <exclusions>
104         <exclusion>
105           <groupId>com.google.code.gson</groupId>
106           <artifactId>gson</artifactId>
107         </exclusion>
108         <exclusion>
109           <groupId>commons-codec</groupId>
110           <artifactId>commons-codec</artifactId>
111         </exclusion>
112         <exclusion>
113           <groupId>org.json</groupId>
114           <artifactId>json</artifactId>
115         </exclusion>
116       </exclusions>
117     </dependency>
118   </dependencies>
119
120   <build>
121     <pluginManagement>
122       <plugins>
123         <plugin>
124           <groupId>org.eclipse.m2e</groupId>
125           <artifactId>lifecycle-mapping</artifactId>
126           <version>1.0.0</version>
127           <configuration>
128             <lifecycleMappingMetadata>
129               <pluginExecutions>
130                 <pluginExecution>
131                   <pluginExecutionFilter>
132                     <groupId>org.apache.felix</groupId>
133                     <artifactId>maven-bundle-plugin</artifactId>
134                     <versionRange>[0,)</versionRange>
135                     <goals>
136                       <goal>cleanVersions</goal>
137                     </goals>
138                   </pluginExecutionFilter>
139                   <action>
140                     <ignore></ignore>
141                   </action>
142                 </pluginExecution>
143                 <pluginExecution>
144                   <pluginExecutionFilter>
145                     <groupId>org.apache.maven.plugins</groupId>
146                     <artifactId>maven-dependency-plugin</artifactId>
147                     <versionRange>[0,)</versionRange>
148                     <goals>
149                       <goal>copy</goal>
150                       <goal>unpack</goal>
151                     </goals>
152                   </pluginExecutionFilter>
153                   <action>
154                     <ignore></ignore>
155                   </action>
156                 </pluginExecution>
157                 <pluginExecution>
158                   <pluginExecutionFilter>
159                     <groupId>org.apache.karaf.tooling</groupId>
160                     <artifactId>karaf-maven-plugin</artifactId>
161                     <versionRange>[0,)</versionRange>
162                     <goals>
163                       <goal>commands-generate-help</goal>
164                     </goals>
165                   </pluginExecutionFilter>
166                   <action>
167                     <ignore></ignore>
168                   </action>
169                 </pluginExecution>
170                 <pluginExecution>
171                   <pluginExecutionFilter>
172                     <groupId>org.fusesource.scalate</groupId>
173                     <artifactId>maven-scalate-plugin</artifactId>
174                     <versionRange>[0,)</versionRange>
175                     <goals>
176                       <goal>sitegen</goal>
177                     </goals>
178                   </pluginExecutionFilter>
179                   <action>
180                     <ignore></ignore>
181                   </action>
182                 </pluginExecution>
183                 <pluginExecution>
184                   <pluginExecutionFilter>
185                     <groupId>org.apache.servicemix.tooling</groupId>
186                     <artifactId>depends-maven-plugin</artifactId>
187                     <versionRange>[0,)</versionRange>
188                     <goals>
189                       <goal>generate-depends-file</goal>
190                     </goals>
191                   </pluginExecutionFilter>
192                   <action>
193                     <ignore></ignore>
194                   </action>
195                 </pluginExecution>
196               </pluginExecutions>
197             </lifecycleMappingMetadata>
198           </configuration>
199         </plugin>
200       </plugins>
201     </pluginManagement>
202     <plugins>
203       <plugin>
204         <artifactId>maven-resources-plugin</artifactId>
205         <version>2.6</version>
206         <executions>
207           <execution>
208             <id>copy-resources</id>
209             <!-- here the phase you need -->
210             <phase>prepare-package</phase>
211             <goals>
212               <goal>copy-resources</goal>
213             </goals>
214             <configuration>
215               <outputDirectory>${basedir}/target/assembly</outputDirectory>
216               <resources>
217                 <resource>
218                   <directory>src/main/assembly</directory>
219                 </resource>
220               </resources>
221               <overwrite>true</overwrite>
222             </configuration>
223           </execution>
224         </executions>
225       </plugin>
226       <plugin>
227         <groupId>org.apache.karaf.tooling</groupId>
228         <artifactId>karaf-maven-plugin</artifactId>
229         <version>${karaf.version}</version>
230         <extensions>true</extensions>
231         <configuration>
232           <!-- no startupFeatures -->
233           <bootFeatures>
234             <feature>standard</feature>
235           </bootFeatures>
236           <!-- no installedFeatures -->
237         </configuration>
238         <executions>
239           <execution>
240             <id>populate-system</id>
241             <phase>generate-resources</phase>
242             <goals>
243               <goal>features-add-to-repository</goal>
244             </goals>
245             <configuration>
246               <descriptors>
247                 <descriptor>mvn:org.apache.karaf.features/standard/${karaf.version}/xml/features</descriptor>
248               </descriptors>
249               <features>
250                 <feature>standard</feature>
251                 <feature>config</feature>
252                 <feature>package</feature>
253                 <feature>kar</feature>
254                 <feature>ssh</feature>
255                 <feature>management</feature>
256                 <feature>war</feature>
257               </features>
258               <repository>target/assembly/system</repository>
259             </configuration>
260           </execution>
261           <execution>
262             <id>process-resources</id>
263             <goals>
264               <goal>install-kars</goal>
265             </goals>
266             <phase>process-resources</phase>
267           </execution>
268           <execution>
269             <id>package</id>
270             <goals>
271               <goal>instance-create-archive</goal>
272             </goals>
273           </execution>
274         </executions>
275       </plugin>
276       <plugin>
277         <groupId>org.apache.maven.plugins</groupId>
278         <artifactId>maven-checkstyle-plugin</artifactId>
279         <version>${checkstyle.version}</version>
280         <configuration>
281           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
282         </configuration>
283       </plugin>
284       <plugin>
285         <groupId>org.apache.maven.plugins</groupId>
286         <artifactId>maven-dependency-plugin</artifactId>
287         <version>2.8</version>
288         <executions>
289           <execution>
290             <id>copy</id>
291             <goals>
292               <goal>copy</goal>
293             </goals>
294             <!-- here the phase you need -->
295             <phase>generate-resources</phase>
296             <configuration>
297               <artifactItems>
298                 <artifactItem>
299                   <groupId>org.opendaylight.controller</groupId>
300                   <artifactId>karaf.branding</artifactId>
301                   <version>${karaf.branding.version}</version>
302                   <outputDirectory>target/assembly/lib</outputDirectory>
303                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
304                 </artifactItem>
305               </artifactItems>
306             </configuration>
307           </execution>
308           <execution>
309             <id>unpack-karaf-resources</id>
310             <goals>
311               <goal>unpack-dependencies</goal>
312             </goals>
313             <phase>prepare-package</phase>
314             <configuration>
315              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
316              <groupId>org.opendaylight.controller</groupId>
317              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
318              <excludes>META-INF\/**</excludes>
319              <excludeTransitive>true</excludeTransitive>
320              <ignorePermissions>false</ignorePermissions>
321             </configuration>
322           </execution>
323           <execution>
324             <id>copy-dependencies</id>
325             <phase>prepare-package</phase>
326             <goals>
327               <goal>copy-dependencies</goal>
328             </goals>
329             <configuration>
330               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
331               <excludeArtifactIds>distribution.vtn-coordinator</excludeArtifactIds>
332               <overWriteReleases>false</overWriteReleases>
333               <overWriteSnapshots>true</overWriteSnapshots>
334               <overWriteIfNewer>true</overWriteIfNewer>
335               <useRepositoryLayout>true</useRepositoryLayout>
336               <addParentPoms>true</addParentPoms>
337               <copyPom>true</copyPom>
338             </configuration>
339           </execution>
340           <execution>
341             <id>copy-externalapps</id>
342             <phase>prepare-package</phase>
343             <goals>
344               <goal>copy-dependencies</goal>
345             </goals>
346             <configuration>
347               <outputDirectory>${project.build.directory}/assembly/externalapps</outputDirectory>
348               <includeArtifactIds>distribution.vtn-coordinator</includeArtifactIds>
349               <overWriteReleases>false</overWriteReleases>
350               <overWriteSnapshots>true</overWriteSnapshots>
351               <overWriteIfNewer>true</overWriteIfNewer>
352               <excludeTransitive>true</excludeTransitive>
353             </configuration>
354           </execution>
355         </executions>
356       </plugin>
357       <plugin>
358         <groupId>org.apache.maven.plugins</groupId>
359         <artifactId>maven-antrun-plugin</artifactId>
360         <executions>
361             <execution>
362                 <phase>prepare-package</phase>
363                 <goals>
364                     <goal>run</goal>
365                 </goals>
366                 <configuration>
367                   <tasks>
368                     <chmod perm="755">
369                         <fileset dir="${project.build.directory}/assembly/bin">
370                           <include name="karaf"/>
371                           <include name="instance"/>
372                           <include name="start"/>
373                           <include name="stop"/>
374                           <include name="status"/>
375                           <include name="client"/>
376                           <include name="shell"/>
377                         </fileset>
378                     </chmod>
379                   </tasks>
380                 </configuration>
381             </execution>
382         </executions>
383       </plugin>
384     </plugins>
385   </build>
386   <scm>
387     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
388     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
389     <tag>HEAD</tag>
390     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
391   </scm>
392 </project>