Merge "Removed unused fields"
[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     <dependency>
89       <groupId>org.opendaylight.openflowplugin</groupId>
90       <artifactId>features-openflowplugin-extension-li</artifactId>
91       <classifier>features</classifier>
92       <type>xml</type>
93       <scope>runtime</scope>
94     </dependency>
95   </dependencies>
96
97   <build>
98     <pluginManagement>
99       <plugins>
100         <plugin>
101           <groupId>org.eclipse.m2e</groupId>
102           <artifactId>lifecycle-mapping</artifactId>
103           <version>1.0.0</version>
104           <configuration>
105             <lifecycleMappingMetadata>
106               <pluginExecutions>
107                 <pluginExecution>
108                   <pluginExecutionFilter>
109                     <groupId>org.apache.felix</groupId>
110                     <artifactId>maven-bundle-plugin</artifactId>
111                     <versionRange>[0,)</versionRange>
112                     <goals>
113                       <goal>cleanVersions</goal>
114                     </goals>
115                   </pluginExecutionFilter>
116                   <action>
117                     <ignore></ignore>
118                   </action>
119                 </pluginExecution>
120                 <pluginExecution>
121                   <pluginExecutionFilter>
122                     <groupId>org.apache.maven.plugins</groupId>
123                     <artifactId>maven-dependency-plugin</artifactId>
124                     <versionRange>[0,)</versionRange>
125                     <goals>
126                       <goal>copy</goal>
127                       <goal>unpack</goal>
128                     </goals>
129                   </pluginExecutionFilter>
130                   <action>
131                     <ignore></ignore>
132                   </action>
133                 </pluginExecution>
134                 <pluginExecution>
135                   <pluginExecutionFilter>
136                     <groupId>org.apache.karaf.tooling</groupId>
137                     <artifactId>karaf-maven-plugin</artifactId>
138                     <versionRange>[0,)</versionRange>
139                     <goals>
140                       <goal>commands-generate-help</goal>
141                     </goals>
142                   </pluginExecutionFilter>
143                   <action>
144                     <ignore></ignore>
145                   </action>
146                 </pluginExecution>
147                 <pluginExecution>
148                   <pluginExecutionFilter>
149                     <groupId>org.fusesource.scalate</groupId>
150                     <artifactId>maven-scalate-plugin</artifactId>
151                     <versionRange>[0,)</versionRange>
152                     <goals>
153                       <goal>sitegen</goal>
154                     </goals>
155                   </pluginExecutionFilter>
156                   <action>
157                     <ignore></ignore>
158                   </action>
159                 </pluginExecution>
160                 <pluginExecution>
161                   <pluginExecutionFilter>
162                     <groupId>org.apache.servicemix.tooling</groupId>
163                     <artifactId>depends-maven-plugin</artifactId>
164                     <versionRange>[0,)</versionRange>
165                     <goals>
166                       <goal>generate-depends-file</goal>
167                     </goals>
168                   </pluginExecutionFilter>
169                   <action>
170                     <ignore></ignore>
171                   </action>
172                 </pluginExecution>
173               </pluginExecutions>
174             </lifecycleMappingMetadata>
175           </configuration>
176         </plugin>
177       </plugins>
178     </pluginManagement>
179     <plugins>
180       <plugin>
181         <groupId>org.apache.karaf.tooling</groupId>
182         <artifactId>karaf-maven-plugin</artifactId>
183         <extensions>true</extensions>
184         <configuration>
185           <!-- no startupFeatures -->
186           <bootFeatures>
187             <feature>standard</feature>
188           </bootFeatures>
189           <!-- no installedFeatures -->
190         </configuration>
191         <executions>
192           <execution>
193             <id>process-resources</id>
194             <goals>
195               <goal>install-kars</goal>
196             </goals>
197             <phase>process-resources</phase>
198           </execution>
199         </executions>
200       </plugin>
201       <plugin>
202         <groupId>org.apache.maven.plugins</groupId>
203         <artifactId>maven-checkstyle-plugin</artifactId>
204         <version>${checkstyle.version}</version>
205         <configuration>
206           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
207         </configuration>
208       </plugin>
209       <plugin>
210         <groupId>org.apache.maven.plugins</groupId>
211         <artifactId>maven-dependency-plugin</artifactId>
212         <version>2.6</version>
213         <executions>
214           <execution>
215             <id>copy</id>
216             <goals>
217               <goal>copy</goal>
218             </goals>
219             <!-- here the phase you need -->
220             <phase>generate-resources</phase>
221             <configuration>
222               <artifactItems>
223                 <artifactItem>
224                   <groupId>org.opendaylight.controller</groupId>
225                   <artifactId>karaf.branding</artifactId>
226                   <version>${karaf.branding.version}</version>
227                   <outputDirectory>target/assembly/lib</outputDirectory>
228                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
229                 </artifactItem>
230               </artifactItems>
231             </configuration>
232           </execution>
233           <execution>
234             <id>unpack-karaf-resources</id>
235             <goals>
236               <goal>unpack-dependencies</goal>
237             </goals>
238             <phase>prepare-package</phase>
239             <configuration>
240              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
241              <groupId>org.opendaylight.controller</groupId>
242              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
243              <excludes>META-INF\/**</excludes>
244              <excludeTransitive>true</excludeTransitive>
245              <ignorePermissions>false</ignorePermissions>
246             </configuration>
247           </execution>
248           <execution>
249             <id>copy-dependencies</id>
250             <phase>prepare-package</phase>
251             <goals>
252               <goal>copy-dependencies</goal>
253             </goals>
254             <configuration>
255               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
256               <overWriteReleases>false</overWriteReleases>
257               <overWriteSnapshots>true</overWriteSnapshots>
258               <overWriteIfNewer>true</overWriteIfNewer>
259               <useRepositoryLayout>true</useRepositoryLayout>
260               <addParentPoms>true</addParentPoms>
261               <copyPom>true</copyPom>
262             </configuration>
263           </execution>
264         </executions>
265       </plugin>
266       <plugin>
267         <groupId>org.apache.maven.plugins</groupId>
268         <artifactId>maven-antrun-plugin</artifactId>
269         <executions>
270             <execution>
271                 <phase>prepare-package</phase>
272                 <goals>
273                     <goal>run</goal>
274                 </goals>
275                 <configuration>
276                   <tasks>
277                     <chmod perm="755">
278                         <fileset dir="${project.build.directory}/assembly/bin">
279                           <include name="karaf"/>
280                           <include name="instance"/>
281                         </fileset>
282                     </chmod>
283                   </tasks>
284                 </configuration>
285             </execution>
286         </executions>
287       </plugin>
288     </plugins>
289   </build>
290
291   <profiles>
292     <profile>
293       <id>create-karaf-archive</id>
294       <build>
295         <plugins>
296           <plugin>
297             <groupId>org.apache.karaf.tooling</groupId>
298             <artifactId>karaf-maven-plugin</artifactId>
299             <extensions>true</extensions>
300             <executions>
301               <execution>
302                 <id>package</id>
303                 <goals>
304                   <goal>instance-create-archive</goal>
305                 </goals>
306               </execution>
307             </executions>
308           </plugin>
309         </plugins>
310       </build>
311     </profile>
312   </profiles>
313
314   <scm>
315     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
316     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
317     <tag>HEAD</tag>
318     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
319   </scm>
320 </project>