Merge "BUG 907 distinguish augmented nodes"
[controller.git] / opendaylight / distribution / opendaylight-karaf / 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.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.4.2-SNAPSHOT</version>
8     <relativePath>../../commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15
16   <dependencies>
17     <dependency>
18       <!-- scope is compile so all features (there is only one) are installed
19             into startup.properties and the feature repo itself is not installed -->
20       <groupId>org.apache.karaf.features</groupId>
21       <artifactId>framework</artifactId>
22       <version>${karaf.version}</version>
23       <type>kar</type>
24     </dependency>
25     <dependency>
26       <groupId>org.opendaylight.controller</groupId>
27       <artifactId>base-features</artifactId>
28       <version>${project.version}</version>
29       <type>kar</type>
30     </dependency>
31     <dependency>
32       <groupId>org.opendaylight.controller</groupId>
33       <artifactId>karaf.branding</artifactId>
34       <scope>compile</scope>
35     </dependency>
36     <!-- scope is runtime so the feature repo is listed in the features
37       service config file, and features may be installed using the
38       karaf-maven-plugin configuration -->
39     <dependency>
40       <groupId>org.apache.karaf.features</groupId>
41       <artifactId>standard</artifactId>
42       <version>${karaf.version}</version>
43       <classifier>features</classifier>
44       <type>xml</type>
45       <scope>runtime</scope>
46     </dependency>
47     <dependency>
48       <groupId>org.opendaylight.controller</groupId>
49       <artifactId>base-features</artifactId>
50       <version>${project.parent.version}</version>
51       <classifier>features</classifier>
52       <type>xml</type>
53       <scope>runtime</scope>
54     </dependency>
55     <!-- scope is compile so all features (there is only one) are installed
56             into startup.properties and the feature repo itself is not installed -->
57     <dependency>
58       <groupId>org.opendaylight.controller</groupId>
59       <artifactId>extras-features</artifactId>
60       <version>${project.version}</version>
61       <type>kar</type>
62       <scope>runtime</scope>
63     </dependency>
64     <dependency>
65       <groupId>org.opendaylight.controller</groupId>
66       <artifactId>config-netty-features</artifactId>
67       <classifier>features</classifier>
68       <type>xml</type>
69       <scope>runtime</scope>
70     </dependency>
71
72     <!-- AD-SAL Related Features -->
73     <dependency>
74       <groupId>org.opendaylight.controller</groupId>
75       <artifactId>features-adsal</artifactId>
76       <classifier>features</classifier>
77       <type>xml</type>
78       <scope>runtime</scope>
79     </dependency>
80     <dependency>
81       <groupId>org.opendaylight.controller</groupId>
82       <artifactId>features-nsf</artifactId>
83       <version>${project.version}</version>
84       <classifier>features</classifier>
85       <type>xml</type>
86       <scope>runtime</scope>
87     </dependency>
88
89     <!-- MD-SAL Related Features -->
90     <dependency>
91       <groupId>org.opendaylight.controller</groupId>
92       <artifactId>mdsal-features</artifactId>
93       <classifier>features</classifier>
94       <type>xml</type>
95       <scope>runtime</scope>
96     </dependency>
97   </dependencies>
98
99   <build>
100     <pluginManagement>
101       <plugins>
102         <plugin>
103           <groupId>org.eclipse.m2e</groupId>
104           <artifactId>lifecycle-mapping</artifactId>
105           <version>1.0.0</version>
106           <configuration>
107             <lifecycleMappingMetadata>
108               <pluginExecutions>
109                 <pluginExecution>
110                   <pluginExecutionFilter>
111                     <groupId>org.apache.felix</groupId>
112                     <artifactId>maven-bundle-plugin</artifactId>
113                     <versionRange>[0,)</versionRange>
114                     <goals>
115                       <goal>cleanVersions</goal>
116                     </goals>
117                   </pluginExecutionFilter>
118                   <action>
119                     <ignore></ignore>
120                   </action>
121                 </pluginExecution>
122                 <pluginExecution>
123                   <pluginExecutionFilter>
124                     <groupId>org.apache.maven.plugins</groupId>
125                     <artifactId>maven-dependency-plugin</artifactId>
126                     <versionRange>[0,)</versionRange>
127                     <goals>
128                       <goal>copy</goal>
129                       <goal>unpack</goal>
130                     </goals>
131                   </pluginExecutionFilter>
132                   <action>
133                     <ignore></ignore>
134                   </action>
135                 </pluginExecution>
136                 <pluginExecution>
137                   <pluginExecutionFilter>
138                     <groupId>org.apache.karaf.tooling</groupId>
139                     <artifactId>karaf-maven-plugin</artifactId>
140                     <versionRange>[0,)</versionRange>
141                     <goals>
142                       <goal>commands-generate-help</goal>
143                     </goals>
144                   </pluginExecutionFilter>
145                   <action>
146                     <ignore></ignore>
147                   </action>
148                 </pluginExecution>
149                 <pluginExecution>
150                   <pluginExecutionFilter>
151                     <groupId>org.fusesource.scalate</groupId>
152                     <artifactId>maven-scalate-plugin</artifactId>
153                     <versionRange>[0,)</versionRange>
154                     <goals>
155                       <goal>sitegen</goal>
156                     </goals>
157                   </pluginExecutionFilter>
158                   <action>
159                     <ignore></ignore>
160                   </action>
161                 </pluginExecution>
162                 <pluginExecution>
163                   <pluginExecutionFilter>
164                     <groupId>org.apache.servicemix.tooling</groupId>
165                     <artifactId>depends-maven-plugin</artifactId>
166                     <versionRange>[0,)</versionRange>
167                     <goals>
168                       <goal>generate-depends-file</goal>
169                     </goals>
170                   </pluginExecutionFilter>
171                   <action>
172                     <ignore></ignore>
173                   </action>
174                 </pluginExecution>
175               </pluginExecutions>
176             </lifecycleMappingMetadata>
177           </configuration>
178         </plugin>
179       </plugins>
180     </pluginManagement>
181     <plugins>
182       <plugin>
183         <groupId>org.apache.karaf.tooling</groupId>
184         <artifactId>karaf-maven-plugin</artifactId>
185         <version>${karaf.version}</version>
186         <extensions>true</extensions>
187         <configuration>
188           <!-- no startupFeatures -->
189           <bootFeatures>
190             <feature>standard</feature>
191           </bootFeatures>
192           <!-- no installedFeatures -->
193         </configuration>
194         <executions>
195           <execution>
196             <id>process-resources</id>
197             <goals>
198               <goal>install-kars</goal>
199             </goals>
200             <phase>process-resources</phase>
201           </execution>
202           <execution>
203             <id>package</id>
204             <goals>
205               <goal>instance-create-archive</goal>
206             </goals>
207           </execution>
208         </executions>
209       </plugin>
210       <plugin>
211         <groupId>org.apache.maven.plugins</groupId>
212         <artifactId>maven-checkstyle-plugin</artifactId>
213         <version>${checkstyle.version}</version>
214         <configuration>
215           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
216         </configuration>
217       </plugin>
218       <plugin>
219         <groupId>org.apache.maven.plugins</groupId>
220         <artifactId>maven-dependency-plugin</artifactId>
221         <version>2.6</version>
222         <executions>
223           <execution>
224             <id>copy</id>
225             <goals>
226               <goal>copy</goal>
227             </goals>
228             <!-- here the phase you need -->
229             <phase>generate-resources</phase>
230             <configuration>
231               <artifactItems>
232                 <artifactItem>
233                   <groupId>org.opendaylight.controller</groupId>
234                   <artifactId>karaf.branding</artifactId>
235                   <version>${karaf.branding.version}</version>
236                   <outputDirectory>target/assembly/lib</outputDirectory>
237                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
238                 </artifactItem>
239               </artifactItems>
240             </configuration>
241           </execution>
242         </executions>
243       </plugin>
244         <plugin>
245             <groupId>org.apache.maven.plugins</groupId>
246             <artifactId>maven-antrun-plugin</artifactId>
247             <executions>
248                 <execution>
249                     <phase>prepare-package</phase>
250                     <goals>
251                         <goal>run</goal>
252                     </goals>
253                     <configuration>
254                         <tasks>
255                             <copy todir="${project.build.directory}/assembly/bin" overwrite="true">
256                                 <fileset dir="${basedir}/src/main/resources/karaf/" includes="karaf,karaf.bat,instance,instance.bat"/>
257                             </copy>
258                         </tasks>
259                     </configuration>
260                 </execution>
261             </executions>
262         </plugin>
263     </plugins>
264   </build>
265   <scm>
266     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
267     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
268     <tag>HEAD</tag>
269     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
270   </scm>
271 </project>