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