f2d217c5187734912bb62d76020ee2b48ba9b853
[controller.git] / karaf / 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.7.0-SNAPSHOT</version>
8     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12
13   <dependencies>
14     <dependency>
15       <!-- scope is compile so all features (there is only one) are installed
16             into startup.properties and the feature repo itself is not installed -->
17       <groupId>org.apache.karaf.features</groupId>
18       <artifactId>framework</artifactId>
19       <version>${karaf.version}</version>
20       <type>kar</type>
21     </dependency>
22     <dependency>
23       <groupId>org.opendaylight.controller</groupId>
24       <artifactId>karaf.branding</artifactId>
25       <scope>compile</scope>
26     </dependency>
27
28     <!-- Resources needed -->
29     <dependency>
30       <groupId>org.opendaylight.controller</groupId>
31       <artifactId>opendaylight-karaf-resources</artifactId>
32       <version>${project.version}</version>
33     </dependency>
34
35     <!-- scope is not runtime so the feature repo is pulled into the local
36     repo on build and thus you actually run.  Failure to do so can lead
37     to very confusing errors for devs -->
38     <dependency>
39       <groupId>org.apache.karaf.features</groupId>
40       <artifactId>standard</artifactId>
41       <version>${karaf.version}</version>
42       <classifier>features</classifier>
43       <type>xml</type>
44     </dependency>
45
46     <!--
47           controller provided features:
48           Note: Nothing should go here that is not locked
49           down with testing... ie, no broken feature repos
50     -->
51
52     <!-- MD-SAL Related Features -->
53     <dependency>
54       <groupId>org.opendaylight.controller</groupId>
55       <artifactId>features-mdsal</artifactId>
56       <classifier>features</classifier>
57       <type>xml</type>
58       <scope>runtime</scope>
59     </dependency>
60       <dependency>
61           <groupId>org.opendaylight.controller</groupId>
62           <artifactId>features-extras</artifactId>
63           <version>${project.version}</version>
64           <classifier>features</classifier>
65           <type>xml</type>
66           <scope>runtime</scope>
67       </dependency>
68     <dependency>
69       <groupId>org.opendaylight.mdsal</groupId>
70       <artifactId>features-mdsal</artifactId>
71       <version>2.1.0-SNAPSHOT</version>
72       <classifier>features</classifier>
73       <type>xml</type>
74       <scope>runtime</scope>
75     </dependency>
76     <dependency>
77       <groupId>org.opendaylight.mdsal.model</groupId>
78       <artifactId>features-mdsal-model</artifactId>
79       <version>0.9.0-SNAPSHOT</version>
80       <classifier>features</classifier>
81       <type>xml</type>
82       <scope>runtime</scope>
83     </dependency>
84
85     <!-- Netconf connector features. When this is included, users can test the netconf connector using netconf-testtool -->
86 <!--     <dependency>
87       <groupId>org.opendaylight.controller</groupId>
88       <artifactId>features-netconf-connector</artifactId>
89       <classifier>features</classifier>
90       <type>xml</type>
91     </dependency> -->
92   </dependencies>
93
94   <build>
95     <pluginManagement>
96       <plugins>
97         <plugin>
98           <groupId>org.eclipse.m2e</groupId>
99           <artifactId>lifecycle-mapping</artifactId>
100           <version>1.0.0</version>
101           <configuration>
102             <lifecycleMappingMetadata>
103               <pluginExecutions>
104                 <pluginExecution>
105                   <pluginExecutionFilter>
106                     <groupId>org.apache.felix</groupId>
107                     <artifactId>maven-bundle-plugin</artifactId>
108                     <versionRange>[0,)</versionRange>
109                     <goals>
110                       <goal>cleanVersions</goal>
111                     </goals>
112                   </pluginExecutionFilter>
113                   <action>
114                     <ignore></ignore>
115                   </action>
116                 </pluginExecution>
117                 <pluginExecution>
118                   <pluginExecutionFilter>
119                     <groupId>org.apache.maven.plugins</groupId>
120                     <artifactId>maven-dependency-plugin</artifactId>
121                     <versionRange>[0,)</versionRange>
122                     <goals>
123                       <goal>copy</goal>
124                       <goal>unpack</goal>
125                     </goals>
126                   </pluginExecutionFilter>
127                   <action>
128                     <ignore></ignore>
129                   </action>
130                 </pluginExecution>
131                 <pluginExecution>
132                   <pluginExecutionFilter>
133                     <groupId>org.apache.karaf.tooling</groupId>
134                     <artifactId>karaf-maven-plugin</artifactId>
135                     <versionRange>[0,)</versionRange>
136                     <goals>
137                       <goal>commands-generate-help</goal>
138                     </goals>
139                   </pluginExecutionFilter>
140                   <action>
141                     <ignore></ignore>
142                   </action>
143                 </pluginExecution>
144                 <pluginExecution>
145                   <pluginExecutionFilter>
146                     <groupId>org.fusesource.scalate</groupId>
147                     <artifactId>maven-scalate-plugin</artifactId>
148                     <versionRange>[0,)</versionRange>
149                     <goals>
150                       <goal>sitegen</goal>
151                     </goals>
152                   </pluginExecutionFilter>
153                   <action>
154                     <ignore></ignore>
155                   </action>
156                 </pluginExecution>
157                 <pluginExecution>
158                   <pluginExecutionFilter>
159                     <groupId>org.apache.servicemix.tooling</groupId>
160                     <artifactId>depends-maven-plugin</artifactId>
161                     <versionRange>[0,)</versionRange>
162                     <goals>
163                       <goal>generate-depends-file</goal>
164                     </goals>
165                   </pluginExecutionFilter>
166                   <action>
167                     <ignore></ignore>
168                   </action>
169                 </pluginExecution>
170               </pluginExecutions>
171             </lifecycleMappingMetadata>
172           </configuration>
173         </plugin>
174       </plugins>
175     </pluginManagement>
176     <plugins>
177       <plugin>
178         <groupId>org.apache.karaf.tooling</groupId>
179         <artifactId>karaf-maven-plugin</artifactId>
180         <version>${karaf.version}</version>
181         <extensions>true</extensions>
182         <configuration>
183           <!-- no startupFeatures -->
184           <bootFeatures>
185             <feature>standard</feature>
186           </bootFeatures>
187           <!-- no installedFeatures -->
188         </configuration>
189         <executions>
190           <execution>
191             <id>process-resources</id>
192             <goals>
193               <goal>install-kars</goal>
194             </goals>
195             <phase>process-resources</phase>
196           </execution>
197           <execution>
198             <id>package</id>
199             <goals>
200               <goal>instance-create-archive</goal>
201             </goals>
202           </execution>
203         </executions>
204       </plugin>
205       <plugin>
206         <groupId>org.apache.maven.plugins</groupId>
207         <artifactId>maven-checkstyle-plugin</artifactId>
208         <configuration>
209           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
210         </configuration>
211       </plugin>
212       <plugin>
213         <groupId>org.apache.maven.plugins</groupId>
214         <artifactId>maven-dependency-plugin</artifactId>
215         <executions>
216           <execution>
217             <id>copy</id>
218             <goals>
219               <goal>copy</goal>
220             </goals>
221             <!-- here the phase you need -->
222             <phase>generate-resources</phase>
223             <configuration>
224               <artifactItems>
225                 <artifactItem>
226                   <groupId>org.opendaylight.controller</groupId>
227                   <artifactId>karaf.branding</artifactId>
228                   <version>${karaf.branding.version}</version>
229                   <outputDirectory>target/assembly/lib</outputDirectory>
230                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
231                 </artifactItem>
232                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
233               <artifactItem>
234                   <groupId>org.bouncycastle</groupId>
235                   <artifactId>bcprov-jdk15on</artifactId>
236                   <version>${bouncycastle.version}</version>
237                   <outputDirectory>target/assembly/lib/ext</outputDirectory>
238                   <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
239               </artifactItem>
240               </artifactItems>
241             </configuration>
242           </execution>
243           <execution>
244             <id>unpack-karaf-resources</id>
245             <goals>
246               <goal>unpack-dependencies</goal>
247             </goals>
248             <phase>prepare-package</phase>
249             <configuration>
250              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
251              <groupId>org.opendaylight.controller</groupId>
252              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
253              <excludes>META-INF\/**</excludes>
254              <excludeTransitive>true</excludeTransitive>
255              <ignorePermissions>false</ignorePermissions>
256             </configuration>
257           </execution>
258         </executions>
259       </plugin>
260       <plugin>
261         <groupId>org.apache.maven.plugins</groupId>
262         <artifactId>maven-antrun-plugin</artifactId>
263         <executions>
264             <execution>
265                 <phase>prepare-package</phase>
266                 <goals>
267                     <goal>run</goal>
268                 </goals>
269                 <configuration>
270                   <tasks>
271                     <chmod perm="755">
272                         <fileset dir="${project.build.directory}/assembly/bin">
273                           <include name="karaf"/>
274                           <include name="instance"/>
275                           <include name="start"/>
276                           <include name="stop"/>
277                           <include name="status"/>
278                           <include name="client"/>
279                           <include name="shell"/>
280                         </fileset>
281                     </chmod>
282                   </tasks>
283                 </configuration>
284             </execution>
285         </executions>
286       </plugin>
287     </plugins>
288   </build>
289   <scm>
290     <connection>scm:git:http://git.opendaylight.org/gerrit/controller.git</connection>
291     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
292     <tag>HEAD</tag>
293     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
294   </scm>
295 </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.