Incrementing versions by 0.1.0 for post-helium master branch
[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.1.0-SNAPSHOT</version>
8     <relativePath>../../</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.1.0-SNAPSHOT</branding.version>
17     <karaf.resources.version>1.5.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       <version>${project.version}</version>
61       <classifier>features</classifier>
62       <type>xml</type>
63       <scope>runtime</scope>
64     </dependency>
65     <!-- MD-SAL Related Features -->
66     <dependency>
67       <groupId>org.opendaylight.controller</groupId>
68       <artifactId>features-mdsal</artifactId>
69       <version>${mdsal.version}</version>
70       <classifier>features</classifier>
71       <type>xml</type>
72       <scope>runtime</scope>
73     </dependency>
74   </dependencies>
75
76   <build>
77     <pluginManagement>
78       <plugins>
79         <plugin>
80           <groupId>org.eclipse.m2e</groupId>
81           <artifactId>lifecycle-mapping</artifactId>
82           <version>1.0.0</version>
83           <configuration>
84             <lifecycleMappingMetadata>
85               <pluginExecutions>
86                 <pluginExecution>
87                   <pluginExecutionFilter>
88                     <groupId>org.apache.felix</groupId>
89                     <artifactId>maven-bundle-plugin</artifactId>
90                     <versionRange>[0,)</versionRange>
91                     <goals>
92                       <goal>cleanVersions</goal>
93                     </goals>
94                   </pluginExecutionFilter>
95                   <action>
96                     <ignore></ignore>
97                   </action>
98                 </pluginExecution>
99                 <pluginExecution>
100                   <pluginExecutionFilter>
101                     <groupId>org.apache.maven.plugins</groupId>
102                     <artifactId>maven-dependency-plugin</artifactId>
103                     <versionRange>[0,)</versionRange>
104                     <goals>
105                       <goal>copy</goal>
106                       <goal>unpack</goal>
107                     </goals>
108                   </pluginExecutionFilter>
109                   <action>
110                     <ignore></ignore>
111                   </action>
112                 </pluginExecution>
113                 <pluginExecution>
114                   <pluginExecutionFilter>
115                     <groupId>org.apache.karaf.tooling</groupId>
116                     <artifactId>karaf-maven-plugin</artifactId>
117                     <versionRange>[0,)</versionRange>
118                     <goals>
119                       <goal>commands-generate-help</goal>
120                     </goals>
121                   </pluginExecutionFilter>
122                   <action>
123                     <ignore></ignore>
124                   </action>
125                 </pluginExecution>
126                 <pluginExecution>
127                   <pluginExecutionFilter>
128                     <groupId>org.fusesource.scalate</groupId>
129                     <artifactId>maven-scalate-plugin</artifactId>
130                     <versionRange>[0,)</versionRange>
131                     <goals>
132                       <goal>sitegen</goal>
133                     </goals>
134                   </pluginExecutionFilter>
135                   <action>
136                     <ignore></ignore>
137                   </action>
138                 </pluginExecution>
139                 <pluginExecution>
140                   <pluginExecutionFilter>
141                     <groupId>org.apache.servicemix.tooling</groupId>
142                     <artifactId>depends-maven-plugin</artifactId>
143                     <versionRange>[0,)</versionRange>
144                     <goals>
145                       <goal>generate-depends-file</goal>
146                     </goals>
147                   </pluginExecutionFilter>
148                   <action>
149                     <ignore></ignore>
150                   </action>
151                 </pluginExecution>
152               </pluginExecutions>
153             </lifecycleMappingMetadata>
154           </configuration>
155         </plugin>
156       </plugins>
157     </pluginManagement>
158     <plugins>
159       <plugin>
160         <groupId>org.apache.karaf.tooling</groupId>
161         <artifactId>karaf-maven-plugin</artifactId>
162         <version>${karaf.version}</version>
163         <extensions>true</extensions>
164         <configuration>
165           <!-- no startupFeatures -->
166           <bootFeatures>
167             <feature>standard</feature>
168             <feature>odl-openflowplugin-flow-services</feature>
169             <feature>odl-restconf</feature>
170           </bootFeatures>
171           <!-- no installedFeatures -->
172         </configuration>
173         <executions>
174           <execution>
175             <id>process-resources</id>
176             <goals>
177               <goal>install-kars</goal>
178             </goals>
179             <phase>process-resources</phase>
180           </execution>
181           <execution>
182             <id>package</id>
183             <goals>
184               <goal>instance-create-archive</goal>
185             </goals>
186           </execution>
187         </executions>
188       </plugin>
189       <plugin>
190         <groupId>org.apache.maven.plugins</groupId>
191         <artifactId>maven-checkstyle-plugin</artifactId>
192         <version>${checkstyle.version}</version>
193         <configuration>
194           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
195         </configuration>
196       </plugin>
197       <plugin>
198         <groupId>org.apache.maven.plugins</groupId>
199         <artifactId>maven-dependency-plugin</artifactId>
200         <version>2.6</version>
201         <executions>
202           <execution>
203             <id>copy</id>
204             <goals>
205               <goal>copy</goal>
206             </goals>
207             <!-- here the phase you need -->
208             <phase>generate-resources</phase>
209             <configuration>
210               <artifactItems>
211                 <artifactItem>
212                   <groupId>org.opendaylight.controller</groupId>
213                   <artifactId>karaf.branding</artifactId>
214                   <version>${karaf.branding.version}</version>
215                   <outputDirectory>target/assembly/lib</outputDirectory>
216                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
217                 </artifactItem>
218               </artifactItems>
219             </configuration>
220           </execution>
221           <execution>
222             <id>unpack-karaf-resources</id>
223             <goals>
224               <goal>unpack-dependencies</goal>
225             </goals>
226             <phase>prepare-package</phase>
227             <configuration>
228              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
229              <groupId>org.opendaylight.controller</groupId>
230              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
231              <excludes>META-INF\/**</excludes>
232              <excludeTransitive>true</excludeTransitive>
233              <ignorePermissions>false</ignorePermissions>
234             </configuration>
235           </execution>
236           <execution>
237             <id>copy-dependencies</id>
238             <phase>prepare-package</phase>
239             <goals>
240               <goal>copy-dependencies</goal>
241             </goals>
242             <configuration>
243               <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
244               <overWriteReleases>false</overWriteReleases>
245               <overWriteSnapshots>true</overWriteSnapshots>
246               <overWriteIfNewer>true</overWriteIfNewer>
247               <useRepositoryLayout>true</useRepositoryLayout>
248               <addParentPoms>true</addParentPoms>
249               <copyPom>true</copyPom>
250             </configuration>
251           </execution>
252         </executions>
253       </plugin>
254       <plugin>
255         <groupId>org.apache.maven.plugins</groupId>
256         <artifactId>maven-antrun-plugin</artifactId>
257         <executions>
258             <execution>
259                 <phase>prepare-package</phase>
260                 <goals>
261                     <goal>run</goal>
262                 </goals>
263                 <configuration>
264                   <tasks>
265                     <chmod perm="755">
266                         <fileset dir="${project.build.directory}/assembly/bin">
267                           <include name="karaf"/>
268                           <include name="instance"/>
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>