Refactoring of 'extractIpv4Mask' method
[openflowplugin.git] / distribution / 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.openflowplugin</groupId>
6     <artifactId>openflowplugin-parent</artifactId>
7     <version>0.2.0-SNAPSHOT</version>
8     <relativePath>../../parent</relativePath>
9   </parent>
10   <artifactId>openflowplugin-karaf</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15   <properties>
16     <branding.version>1.2.0-SNAPSHOT</branding.version>
17     <karaf.resources.version>1.6.0-SNAPSHOT</karaf.resources.version>
18   </properties>
19
20   <dependencies>
21     <dependency>
22       <!-- scope is compile so all features (there is only one) are installed
23             into startup.properties and the feature repo itself is not installed -->
24       <groupId>org.apache.karaf.features</groupId>
25       <artifactId>framework</artifactId>
26       <version>${karaf.version}</version>
27       <type>kar</type>
28     </dependency>
29     <!-- scope is runtime so the feature repo is listed in the features
30       service config file, and features may be installed using the
31       karaf-maven-plugin configuration -->
32     <dependency>
33       <groupId>org.apache.karaf.features</groupId>
34       <artifactId>standard</artifactId>
35       <version>${karaf.version}</version>
36       <classifier>features</classifier>
37       <type>xml</type>
38       <scope>runtime</scope>
39     </dependency>
40
41     <!-- ODL Branding -->
42     <dependency>
43       <groupId>org.opendaylight.controller</groupId>
44       <artifactId>karaf.branding</artifactId>
45       <version>${branding.version}</version>
46       <scope>compile</scope>
47     </dependency>
48
49     <!-- Resources needed -->
50     <dependency>
51       <groupId>org.opendaylight.controller</groupId>
52       <artifactId>opendaylight-karaf-resources</artifactId>
53       <version>${karaf.resources.version}</version>
54     </dependency>
55
56     <!-- openflowplugin feature -->
57     <dependency>
58       <artifactId>features-openflowplugin</artifactId>
59       <groupId>org.opendaylight.openflowplugin</groupId>
60       <classifier>features</classifier>
61       <type>xml</type>
62       <scope>runtime</scope>
63     </dependency>
64     <dependency>
65       <artifactId>features-openflowplugin-li</artifactId>
66       <groupId>org.opendaylight.openflowplugin</groupId>
67       <classifier>features</classifier>
68       <type>xml</type>
69       <scope>runtime</scope>
70     </dependency>
71     <!-- MD-SAL Related Features -->
72     <dependency>
73       <groupId>org.opendaylight.controller</groupId>
74       <artifactId>features-mdsal</artifactId>
75       <version>${mdsal.version}</version>
76       <classifier>features</classifier>
77       <type>xml</type>
78       <scope>runtime</scope>
79     </dependency>
80     <!-- openflowplugin extension feature -->
81     <dependency>
82       <groupId>org.opendaylight.openflowplugin</groupId>
83       <artifactId>features-openflowplugin-extension</artifactId>
84       <classifier>features</classifier>
85       <type>xml</type>
86       <scope>runtime</scope>
87     </dependency>
88   </dependencies>
89
90   <build>
91     <pluginManagement>
92       <plugins>
93         <plugin>
94           <groupId>org.eclipse.m2e</groupId>
95           <artifactId>lifecycle-mapping</artifactId>
96           <version>1.0.0</version>
97           <configuration>
98             <lifecycleMappingMetadata>
99               <pluginExecutions>
100                 <pluginExecution>
101                   <pluginExecutionFilter>
102                     <groupId>org.apache.felix</groupId>
103                     <artifactId>maven-bundle-plugin</artifactId>
104                     <versionRange>[0,)</versionRange>
105                     <goals>
106                       <goal>cleanVersions</goal>
107                     </goals>
108                   </pluginExecutionFilter>
109                   <action>
110                     <ignore></ignore>
111                   </action>
112                 </pluginExecution>
113                 <pluginExecution>
114                   <pluginExecutionFilter>
115                     <groupId>org.apache.maven.plugins</groupId>
116                     <artifactId>maven-dependency-plugin</artifactId>
117                     <versionRange>[0,)</versionRange>
118                     <goals>
119                       <goal>copy</goal>
120                       <goal>unpack</goal>
121                     </goals>
122                   </pluginExecutionFilter>
123                   <action>
124                     <ignore></ignore>
125                   </action>
126                 </pluginExecution>
127                 <pluginExecution>
128                   <pluginExecutionFilter>
129                     <groupId>org.apache.karaf.tooling</groupId>
130                     <artifactId>karaf-maven-plugin</artifactId>
131                     <versionRange>[0,)</versionRange>
132                     <goals>
133                       <goal>commands-generate-help</goal>
134                     </goals>
135                   </pluginExecutionFilter>
136                   <action>
137                     <ignore></ignore>
138                   </action>
139                 </pluginExecution>
140                 <pluginExecution>
141                   <pluginExecutionFilter>
142                     <groupId>org.fusesource.scalate</groupId>
143                     <artifactId>maven-scalate-plugin</artifactId>
144                     <versionRange>[0,)</versionRange>
145                     <goals>
146                       <goal>sitegen</goal>
147                     </goals>
148                   </pluginExecutionFilter>
149                   <action>
150                     <ignore></ignore>
151                   </action>
152                 </pluginExecution>
153                 <pluginExecution>
154                   <pluginExecutionFilter>
155                     <groupId>org.apache.servicemix.tooling</groupId>
156                     <artifactId>depends-maven-plugin</artifactId>
157                     <versionRange>[0,)</versionRange>
158                     <goals>
159                       <goal>generate-depends-file</goal>
160                     </goals>
161                   </pluginExecutionFilter>
162                   <action>
163                     <ignore></ignore>
164                   </action>
165                 </pluginExecution>
166               </pluginExecutions>
167             </lifecycleMappingMetadata>
168           </configuration>
169         </plugin>
170       </plugins>
171     </pluginManagement>
172     <plugins>
173       <plugin>
174         <groupId>org.apache.karaf.tooling</groupId>
175         <artifactId>karaf-maven-plugin</artifactId>
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         </executions>
193       </plugin>
194       <plugin>
195         <groupId>org.apache.maven.plugins</groupId>
196         <artifactId>maven-checkstyle-plugin</artifactId>
197         <version>${checkstyle.version}</version>
198         <configuration>
199           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
200         </configuration>
201       </plugin>
202       <plugin>
203         <groupId>org.apache.maven.plugins</groupId>
204         <artifactId>maven-dependency-plugin</artifactId>
205         <version>2.6</version>
206         <executions>
207           <execution>
208             <id>copy</id>
209             <goals>
210               <goal>copy</goal>
211             </goals>
212             <!-- here the phase you need -->
213             <phase>generate-resources</phase>
214             <configuration>
215               <artifactItems>
216                 <artifactItem>
217                   <groupId>org.opendaylight.controller</groupId>
218                   <artifactId>karaf.branding</artifactId>
219                   <version>${karaf.branding.version}</version>
220                   <outputDirectory>target/assembly/lib</outputDirectory>
221                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
222                 </artifactItem>
223               </artifactItems>
224             </configuration>
225           </execution>
226           <execution>
227             <id>unpack-karaf-resources</id>
228             <goals>
229               <goal>unpack-dependencies</goal>
230             </goals>
231             <phase>prepare-package</phase>
232             <configuration>
233              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
234              <groupId>org.opendaylight.controller</groupId>
235              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
236              <excludes>META-INF\/**</excludes>
237              <excludeTransitive>true</excludeTransitive>
238              <ignorePermissions>false</ignorePermissions>
239             </configuration>
240           </execution>
241           <execution>
242             <id>copy-dependencies</id>
243             <phase>prepare-package</phase>
244             <goals>
245               <goal>copy-dependencies</goal>
246             </goals>
247             <configuration>
248               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
249               <overWriteReleases>false</overWriteReleases>
250               <overWriteSnapshots>true</overWriteSnapshots>
251               <overWriteIfNewer>true</overWriteIfNewer>
252               <useRepositoryLayout>true</useRepositoryLayout>
253               <addParentPoms>true</addParentPoms>
254               <copyPom>true</copyPom>
255             </configuration>
256           </execution>
257         </executions>
258       </plugin>
259       <plugin>
260         <groupId>org.apache.maven.plugins</groupId>
261         <artifactId>maven-antrun-plugin</artifactId>
262         <executions>
263             <execution>
264                 <phase>prepare-package</phase>
265                 <goals>
266                     <goal>run</goal>
267                 </goals>
268                 <configuration>
269                   <tasks>
270                     <chmod perm="755">
271                         <fileset dir="${project.build.directory}/assembly/bin">
272                           <include name="karaf"/>
273                           <include name="instance"/>
274                         </fileset>
275                     </chmod>
276                   </tasks>
277                 </configuration>
278             </execution>
279         </executions>
280       </plugin>
281     </plugins>
282   </build>
283
284   <profiles>
285     <profile>
286       <id>create-karaf-archive</id>
287       <build>
288         <plugins>
289           <plugin>
290             <groupId>org.apache.karaf.tooling</groupId>
291             <artifactId>karaf-maven-plugin</artifactId>
292             <extensions>true</extensions>
293             <executions>
294               <execution>
295                 <id>package</id>
296                 <goals>
297                   <goal>instance-create-archive</goal>
298                 </goals>
299               </execution>
300             </executions>
301           </plugin>
302         </plugins>
303       </build>
304     </profile>
305   </profiles>
306
307   <scm>
308     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
309     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
310     <tag>HEAD</tag>
311     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
312   </scm>
313 </project>