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

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.