Merge "Bug 1280: Added option to automaticly create parents"
[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       <version>${config.version}</version>
68       <classifier>features</classifier>
69       <type>xml</type>
70       <scope>runtime</scope>
71     </dependency>
72     <dependency>
73       <groupId>org.opendaylight.controller</groupId>
74       <artifactId>features-adsal</artifactId>
75       <version>${sal.version}</version>
76       <classifier>features</classifier>
77       <type>xml</type>
78       <scope>runtime</scope>
79     </dependency>
80     <dependency>
81       <groupId>org.opendaylight.controller</groupId>
82       <artifactId>mdsal-features</artifactId>
83       <version>${mdsal.version}</version>
84       <classifier>features</classifier>
85       <type>xml</type>
86       <scope>runtime</scope>
87     </dependency>
88   </dependencies>
89
90   <build>
91     <pluginManagement>
92       <plugins>
93         <plugin>
94           <groupId>org.eclipse.m2e</groupId>
95           <artifactId>lifecycle-mapping</artifactId>
96           <version>1.0.0</version>
97           <configuration>
98             <lifecycleMappingMetadata>
99               <pluginExecutions>
100                 <pluginExecution>
101                   <pluginExecutionFilter>
102                     <groupId>org.apache.felix</groupId>
103                     <artifactId>maven-bundle-plugin</artifactId>
104                     <versionRange>[0,)</versionRange>
105                     <goals>
106                       <goal>cleanVersions</goal>
107                     </goals>
108                   </pluginExecutionFilter>
109                   <action>
110                     <ignore></ignore>
111                   </action>
112                 </pluginExecution>
113                 <pluginExecution>
114                   <pluginExecutionFilter>
115                     <groupId>org.apache.maven.plugins</groupId>
116                     <artifactId>maven-dependency-plugin</artifactId>
117                     <versionRange>[0,)</versionRange>
118                     <goals>
119                       <goal>copy</goal>
120                       <goal>unpack</goal>
121                     </goals>
122                   </pluginExecutionFilter>
123                   <action>
124                     <ignore></ignore>
125                   </action>
126                 </pluginExecution>
127                 <pluginExecution>
128                   <pluginExecutionFilter>
129                     <groupId>org.apache.karaf.tooling</groupId>
130                     <artifactId>karaf-maven-plugin</artifactId>
131                     <versionRange>[0,)</versionRange>
132                     <goals>
133                       <goal>commands-generate-help</goal>
134                     </goals>
135                   </pluginExecutionFilter>
136                   <action>
137                     <ignore></ignore>
138                   </action>
139                 </pluginExecution>
140                 <pluginExecution>
141                   <pluginExecutionFilter>
142                     <groupId>org.fusesource.scalate</groupId>
143                     <artifactId>maven-scalate-plugin</artifactId>
144                     <versionRange>[0,)</versionRange>
145                     <goals>
146                       <goal>sitegen</goal>
147                     </goals>
148                   </pluginExecutionFilter>
149                   <action>
150                     <ignore></ignore>
151                   </action>
152                 </pluginExecution>
153                 <pluginExecution>
154                   <pluginExecutionFilter>
155                     <groupId>org.apache.servicemix.tooling</groupId>
156                     <artifactId>depends-maven-plugin</artifactId>
157                     <versionRange>[0,)</versionRange>
158                     <goals>
159                       <goal>generate-depends-file</goal>
160                     </goals>
161                   </pluginExecutionFilter>
162                   <action>
163                     <ignore></ignore>
164                   </action>
165                 </pluginExecution>
166               </pluginExecutions>
167             </lifecycleMappingMetadata>
168           </configuration>
169         </plugin>
170       </plugins>
171     </pluginManagement>
172     <plugins>
173       <plugin>
174         <groupId>org.apache.karaf.tooling</groupId>
175         <artifactId>karaf-maven-plugin</artifactId>
176         <version>${karaf.version}</version>
177         <extensions>true</extensions>
178         <configuration>
179           <!-- no startupFeatures -->
180           <bootFeatures>
181             <feature>standard</feature>
182           </bootFeatures>
183           <!-- no installedFeatures -->
184         </configuration>
185         <executions>
186           <execution>
187             <id>process-resources</id>
188             <goals>
189               <goal>install-kars</goal>
190             </goals>
191             <phase>process-resources</phase>
192           </execution>
193           <execution>
194             <id>package</id>
195             <goals>
196               <goal>instance-create-archive</goal>
197             </goals>
198           </execution>
199         </executions>
200       </plugin>
201       <plugin>
202         <groupId>org.apache.maven.plugins</groupId>
203         <artifactId>maven-checkstyle-plugin</artifactId>
204         <version>${checkstyle.version}</version>
205         <configuration>
206           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
207         </configuration>
208       </plugin>
209       <plugin>
210         <groupId>org.apache.maven.plugins</groupId>
211         <artifactId>maven-dependency-plugin</artifactId>
212         <version>2.6</version>
213         <executions>
214           <execution>
215             <id>copy</id>
216             <goals>
217               <goal>copy</goal>
218             </goals>
219             <!-- here the phase you need -->
220             <phase>generate-resources</phase>
221             <configuration>
222               <artifactItems>
223                 <artifactItem>
224                   <groupId>org.opendaylight.controller</groupId>
225                   <artifactId>karaf.branding</artifactId>
226                   <version>${karaf.branding.version}</version>
227                   <outputDirectory>target/assembly/lib</outputDirectory>
228                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
229                 </artifactItem>
230               </artifactItems>
231             </configuration>
232           </execution>
233         </executions>
234       </plugin>
235         <plugin>
236             <groupId>org.apache.maven.plugins</groupId>
237             <artifactId>maven-antrun-plugin</artifactId>
238             <executions>
239                 <execution>
240                     <phase>prepare-package</phase>
241                     <goals>
242                         <goal>run</goal>
243                     </goals>
244                     <configuration>
245                         <tasks>
246                             <copy todir="${project.build.directory}/assembly/bin" overwrite="true">
247                                 <fileset dir="${basedir}/src/main/resources/karaf/" includes="karaf,karaf.bat,instance,instance.bat"/>
248                             </copy>
249                         </tasks>
250                     </configuration>
251                 </execution>
252             </executions>
253         </plugin>
254     </plugins>
255   </build>
256   <scm>
257     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
258     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
259     <tag>HEAD</tag>
260     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
261   </scm>
262 </project>