Merge "BUG-2310 - widen yang model for netconf-node."
[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.5.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     <!-- AD-SAL Related Features -->
53     <dependency>
54       <groupId>org.opendaylight.controller</groupId>
55       <artifactId>features-base</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-adsal</artifactId>
63       <classifier>features</classifier>
64       <type>xml</type>
65       <scope>runtime</scope>
66     </dependency>
67     <dependency>
68       <groupId>org.opendaylight.controller</groupId>
69       <artifactId>features-nsf</artifactId>
70       <classifier>features</classifier>
71       <type>xml</type>
72       <scope>runtime</scope>
73     </dependency>
74     <!-- MD-SAL Related Features -->
75     <dependency>
76       <groupId>org.opendaylight.controller</groupId>
77       <artifactId>features-mdsal</artifactId>
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-extras</artifactId>
85           <version>${project.version}</version>
86           <classifier>features</classifier>
87           <type>xml</type>
88           <scope>runtime</scope>
89       </dependency>
90     <dependency>
91       <groupId>org.opendaylight.controller</groupId>
92       <artifactId>features-flow</artifactId>
93       <classifier>features</classifier>
94       <type>xml</type>
95       <scope>runtime</scope>
96     </dependency>
97     <dependency>
98       <groupId>org.opendaylight.controller</groupId>
99       <artifactId>features-restconf</artifactId>
100       <version>1.2.0-SNAPSHOT</version>
101       <classifier>features</classifier>
102       <type>xml</type>
103       <scope>runtime</scope>
104     </dependency>
105     <dependency>
106       <groupId>org.opendaylight.controller</groupId>
107       <artifactId>features-neutron</artifactId>
108       <version>${networkconfig.neutron.version}</version>
109       <classifier>features</classifier>
110       <type>xml</type>
111       <scope>runtime</scope>
112     </dependency>
113     <!-- Netconf connector features. When this is included, users can test the netconf connector using netconf-testtool -->
114     <dependency>
115       <groupId>org.opendaylight.controller</groupId>
116       <artifactId>features-netconf-connector</artifactId>
117       <classifier>features</classifier>
118       <type>xml</type>
119     </dependency>
120
121     <dependency>
122       <groupId>org.opendaylight.controller</groupId>
123       <artifactId>features-neutron</artifactId>
124       <classifier>features</classifier>
125       <type>xml</type>
126       <scope>runtime</scope>
127     </dependency>
128
129   </dependencies>
130
131   <build>
132     <pluginManagement>
133       <plugins>
134         <plugin>
135           <groupId>org.eclipse.m2e</groupId>
136           <artifactId>lifecycle-mapping</artifactId>
137           <version>1.0.0</version>
138           <configuration>
139             <lifecycleMappingMetadata>
140               <pluginExecutions>
141                 <pluginExecution>
142                   <pluginExecutionFilter>
143                     <groupId>org.apache.felix</groupId>
144                     <artifactId>maven-bundle-plugin</artifactId>
145                     <versionRange>[0,)</versionRange>
146                     <goals>
147                       <goal>cleanVersions</goal>
148                     </goals>
149                   </pluginExecutionFilter>
150                   <action>
151                     <ignore></ignore>
152                   </action>
153                 </pluginExecution>
154                 <pluginExecution>
155                   <pluginExecutionFilter>
156                     <groupId>org.apache.maven.plugins</groupId>
157                     <artifactId>maven-dependency-plugin</artifactId>
158                     <versionRange>[0,)</versionRange>
159                     <goals>
160                       <goal>copy</goal>
161                       <goal>unpack</goal>
162                     </goals>
163                   </pluginExecutionFilter>
164                   <action>
165                     <ignore></ignore>
166                   </action>
167                 </pluginExecution>
168                 <pluginExecution>
169                   <pluginExecutionFilter>
170                     <groupId>org.apache.karaf.tooling</groupId>
171                     <artifactId>karaf-maven-plugin</artifactId>
172                     <versionRange>[0,)</versionRange>
173                     <goals>
174                       <goal>commands-generate-help</goal>
175                     </goals>
176                   </pluginExecutionFilter>
177                   <action>
178                     <ignore></ignore>
179                   </action>
180                 </pluginExecution>
181                 <pluginExecution>
182                   <pluginExecutionFilter>
183                     <groupId>org.fusesource.scalate</groupId>
184                     <artifactId>maven-scalate-plugin</artifactId>
185                     <versionRange>[0,)</versionRange>
186                     <goals>
187                       <goal>sitegen</goal>
188                     </goals>
189                   </pluginExecutionFilter>
190                   <action>
191                     <ignore></ignore>
192                   </action>
193                 </pluginExecution>
194                 <pluginExecution>
195                   <pluginExecutionFilter>
196                     <groupId>org.apache.servicemix.tooling</groupId>
197                     <artifactId>depends-maven-plugin</artifactId>
198                     <versionRange>[0,)</versionRange>
199                     <goals>
200                       <goal>generate-depends-file</goal>
201                     </goals>
202                   </pluginExecutionFilter>
203                   <action>
204                     <ignore></ignore>
205                   </action>
206                 </pluginExecution>
207               </pluginExecutions>
208             </lifecycleMappingMetadata>
209           </configuration>
210         </plugin>
211       </plugins>
212     </pluginManagement>
213     <plugins>
214       <plugin>
215         <groupId>org.apache.karaf.tooling</groupId>
216         <artifactId>karaf-maven-plugin</artifactId>
217         <version>${karaf.version}</version>
218         <extensions>true</extensions>
219         <configuration>
220           <!-- no startupFeatures -->
221           <bootFeatures>
222             <feature>standard</feature>
223           </bootFeatures>
224           <!-- no installedFeatures -->
225         </configuration>
226         <executions>
227           <execution>
228             <id>process-resources</id>
229             <goals>
230               <goal>install-kars</goal>
231             </goals>
232             <phase>process-resources</phase>
233           </execution>
234           <execution>
235             <id>package</id>
236             <goals>
237               <goal>instance-create-archive</goal>
238             </goals>
239           </execution>
240         </executions>
241       </plugin>
242       <plugin>
243         <groupId>org.apache.maven.plugins</groupId>
244         <artifactId>maven-checkstyle-plugin</artifactId>
245         <configuration>
246           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
247         </configuration>
248       </plugin>
249       <plugin>
250         <groupId>org.apache.maven.plugins</groupId>
251         <artifactId>maven-dependency-plugin</artifactId>
252         <version>2.6</version>
253         <executions>
254           <execution>
255             <id>copy</id>
256             <goals>
257               <goal>copy</goal>
258             </goals>
259             <!-- here the phase you need -->
260             <phase>generate-resources</phase>
261             <configuration>
262               <artifactItems>
263                 <artifactItem>
264                   <groupId>org.opendaylight.controller</groupId>
265                   <artifactId>karaf.branding</artifactId>
266                   <version>${karaf.branding.version}</version>
267                   <outputDirectory>target/assembly/lib</outputDirectory>
268                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
269                 </artifactItem>
270                   <!-- Needs to be copied to lib/ext in order to start bouncy provider for mina sshd -->
271               <artifactItem>
272                   <groupId>org.bouncycastle</groupId>
273                   <artifactId>bcprov-jdk15on</artifactId>
274                   <version>${bouncycastle.version}</version>
275                   <outputDirectory>target/assembly/lib/ext</outputDirectory>
276                   <destFileName>bcprov-jdk15on-${bouncycastle.version}.jar</destFileName>
277               </artifactItem>
278               </artifactItems>
279             </configuration>
280           </execution>
281           <execution>
282             <id>unpack-karaf-resources</id>
283             <goals>
284               <goal>unpack-dependencies</goal>
285             </goals>
286             <phase>prepare-package</phase>
287             <configuration>
288              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
289              <groupId>org.opendaylight.controller</groupId>
290              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
291              <excludes>META-INF\/**</excludes>
292              <excludeTransitive>true</excludeTransitive>
293              <ignorePermissions>false</ignorePermissions>
294             </configuration>
295           </execution>
296         </executions>
297       </plugin>
298       <plugin>
299         <groupId>org.apache.maven.plugins</groupId>
300         <artifactId>maven-antrun-plugin</artifactId>
301         <executions>
302             <execution>
303                 <phase>prepare-package</phase>
304                 <goals>
305                     <goal>run</goal>
306                 </goals>
307                 <configuration>
308                   <tasks>
309                     <chmod perm="755">
310                         <fileset dir="${project.build.directory}/assembly/bin">
311                           <include name="karaf"/>
312                           <include name="instance"/>
313                           <include name="start"/>
314                           <include name="stop"/>
315                           <include name="status"/>
316                           <include name="client"/>
317                           <include name="shell"/>
318                         </fileset>
319                     </chmod>
320                   </tasks>
321                 </configuration>
322             </execution>
323         </executions>
324       </plugin>
325     </plugins>
326   </build>
327   <scm>
328     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
329     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
330     <tag>HEAD</tag>
331     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
332   </scm>
333 </project>