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