Bump versions to 8.0.2-SNAPSHOT
[odlparent.git] / karaf / karaf4-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright © 2016 Red Hat, Inc. and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8  -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0"
10          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12     <modelVersion>4.0.0</modelVersion>
13
14     <parent>
15         <groupId>org.opendaylight.odlparent</groupId>
16         <artifactId>odlparent</artifactId>
17         <version>8.0.2-SNAPSHOT</version>
18         <relativePath>../../odlparent</relativePath>
19     </parent>
20
21     <groupId>org.opendaylight.odlparent</groupId>
22     <artifactId>karaf4-parent</artifactId>
23     <version>8.0.2-SNAPSHOT</version>
24     <packaging>pom</packaging>
25     <name>ODL :: odlparent :: ${project.artifactId}</name>
26
27     <properties>
28         <!-- Projects can override this to add their own boot feature -->
29         <karaf.localFeature>standard</karaf.localFeature>
30         <karaf.archiveZip>true</karaf.archiveZip>
31         <karaf.archiveTarGz>true</karaf.archiveTarGz>
32     </properties>
33
34     <dependencyManagement>
35         <dependencies>
36             <dependency>
37                 <groupId>org.apache.karaf.features</groupId>
38                 <artifactId>framework</artifactId>
39                 <version>${karaf.version}</version>
40                 <type>kar</type>
41             </dependency>
42             <dependency>
43                 <groupId>org.apache.karaf.features</groupId>
44                 <artifactId>framework</artifactId>
45                 <version>${karaf.version}</version>
46                 <classifier>features</classifier>
47                 <type>xml</type>
48             </dependency>
49             <dependency>
50                 <groupId>org.apache.karaf.features</groupId>
51                 <artifactId>standard</artifactId>
52                 <version>${karaf.version}</version>
53                 <classifier>features</classifier>
54                 <type>xml</type>
55             </dependency>
56         </dependencies>
57     </dependencyManagement>
58
59     <dependencies>
60         <dependency>
61             <groupId>org.apache.karaf.features</groupId>
62             <artifactId>framework</artifactId>
63             <type>kar</type>
64         </dependency>
65         <dependency>
66             <groupId>org.apache.karaf.features</groupId>
67             <artifactId>framework</artifactId>
68             <classifier>features</classifier>
69             <type>xml</type>
70             <scope>runtime</scope>
71         </dependency>
72         <dependency>
73             <groupId>org.apache.karaf.features</groupId>
74             <artifactId>standard</artifactId>
75             <classifier>features</classifier>
76             <type>xml</type>
77             <scope>runtime</scope>
78         </dependency>
79         <dependency>
80             <groupId>org.apache.aries.quiesce</groupId>
81             <artifactId>org.apache.aries.quiesce.api</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.osgi</groupId>
85             <!-- for https://bugs.opendaylight.org/show_bug.cgi?id=4290 -->
86             <artifactId>org.osgi.service.event</artifactId>
87         </dependency>
88
89         <!-- Optional dependency of karaf.config.core -->
90         <dependency>
91             <groupId>org.apache.felix</groupId>
92             <artifactId>org.apache.felix.metatype</artifactId>
93         </dependency>
94
95         <!-- ODL Branding -->
96         <dependency>
97             <groupId>org.opendaylight.odlparent</groupId>
98             <artifactId>karaf.branding</artifactId>
99         </dependency>
100         <!-- ODL configuration -->
101         <dependency>
102             <groupId>org.opendaylight.odlparent</groupId>
103             <artifactId>opendaylight-karaf-resources</artifactId>
104         </dependency>
105
106         <!-- BouncyCastle Framework Extension Bundles -->
107         <dependency>
108             <groupId>org.opendaylight.odlparent</groupId>
109             <artifactId>bcpkix-framework-ext</artifactId>
110             <scope>runtime</scope>
111         </dependency>
112         <dependency>
113             <groupId>org.opendaylight.odlparent</groupId>
114             <artifactId>bcprov-framework-ext</artifactId>
115             <scope>runtime</scope>
116         </dependency>
117     </dependencies>
118
119     <build>
120         <pluginManagement>
121             <plugins>
122                 <plugin>
123                     <groupId>org.opendaylight.odlparent</groupId>
124                     <artifactId>karaf-plugin</artifactId>
125                     <version>8.0.2-SNAPSHOT</version>
126                 </plugin>
127             </plugins>
128         </pluginManagement>
129
130         <plugins>
131             <plugin>
132                 <artifactId>maven-remote-resources-plugin</artifactId>
133                 <configuration>
134                     <skip>true</skip>
135                 </configuration>
136             </plugin>
137             <plugin>
138                 <groupId>org.apache.maven.plugins</groupId>
139                 <artifactId>maven-dependency-plugin</artifactId>
140                 <executions>
141                     <execution>
142                         <id>apply-branding</id>
143                         <goals>
144                             <goal>copy</goal>
145                         </goals>
146                         <phase>prepare-package</phase>
147                         <configuration>
148                             <artifactItems>
149                                 <artifactItem>
150                                     <groupId>org.opendaylight.odlparent</groupId>
151                                     <artifactId>karaf.branding</artifactId>
152                                     <version>8.0.2-SNAPSHOT</version>
153                                     <outputDirectory>target/assembly/lib</outputDirectory>
154                                     <destFileName>karaf.branding-8.0.2-SNAPSHOT.jar</destFileName>
155                                 </artifactItem>
156                             </artifactItems>
157                             <silent>true</silent>
158                         </configuration>
159                     </execution>
160                     <execution>
161                         <id>unpack-karaf-resources</id>
162                         <goals>
163                             <goal>unpack-dependencies</goal>
164                         </goals>
165                         <phase>prepare-package</phase>
166                         <configuration>
167                             <outputDirectory>${project.build.directory}/assembly</outputDirectory>
168                             <groupId>org.opendaylight.odlparent</groupId>
169                             <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
170                             <excludes>META-INF\/**</excludes>
171                             <excludeTransitive>true</excludeTransitive>
172                             <ignorePermissions>false</ignorePermissions>
173                             <silent>true</silent>
174                         </configuration>
175                     </execution>
176                     <execution>
177                         <id>org.ops4j.pax.url.mvn.cfg</id>
178                         <goals>
179                             <goal>copy</goal>
180                         </goals>
181                         <phase>prepare-package</phase>
182                         <configuration>
183                             <artifactItems>
184                                 <artifactItem>
185                                     <groupId>org.opendaylight.odlparent</groupId>
186                                     <artifactId>opendaylight-karaf-resources</artifactId>
187                                     <type>properties</type>
188                                     <classifier>config</classifier>
189                                     <overWrite>true</overWrite>
190                                     <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
191                                     <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
192                                 </artifactItem>
193                             </artifactItems>
194                             <overWriteReleases>true</overWriteReleases>
195                             <overWriteSnapshots>true</overWriteSnapshots>
196                         </configuration>
197                     </execution>
198                 </executions>
199             </plugin>
200             <plugin>
201                 <artifactId>maven-resources-plugin</artifactId>
202                 <executions>
203                     <execution>
204                         <id>copy-resources</id>
205                         <phase>prepare-package</phase>
206                         <goals>
207                             <goal>copy-resources</goal>
208                         </goals>
209                         <configuration>
210                             <outputDirectory>${basedir}/target/assembly</outputDirectory>
211                             <resources>
212                                 <resource>
213                                     <directory>src/main/assembly</directory>
214                                 </resource>
215                             </resources>
216                             <overwrite>true</overwrite>
217                         </configuration>
218                     </execution>
219                     <execution>
220                         <id>process-resources</id>
221                         <goals>
222                             <goal>resources</goal>
223                         </goals>
224                     </execution>
225                 </executions>
226             </plugin>
227             <plugin>
228                 <groupId>org.opendaylight.odlparent</groupId>
229                 <artifactId>karaf-plugin</artifactId>
230                 <executions>
231                     <execution>
232                         <id>populate-local-repo</id>
233                         <phase>prepare-package</phase>
234                         <goals>
235                             <goal>populate-local-repo</goal>
236                         </goals>
237                         <configuration>
238                             <localRepo>${project.build.directory}/assembly/system</localRepo>
239                         </configuration>
240                     </execution>
241                 </executions>
242             </plugin>
243             <plugin>
244                 <artifactId>maven-antrun-plugin</artifactId>
245                 <executions>
246                     <execution>
247                         <id>fix-permissions</id>
248                         <phase>prepare-package</phase>
249                         <goals>
250                             <goal>run</goal>
251                         </goals>
252                         <configuration>
253                             <target>
254                                 <chmod perm="755">
255                                     <fileset dir="${project.build.directory}/assembly/bin">
256                                         <!-- Ensure that all the shell scripts are executable -->
257                                         <exclude name="*.bat"/>
258                                         <exclude name="contrib/*"/>
259                                     </fileset>
260                                 </chmod>
261                             </target>
262                         </configuration>
263                     </execution>
264                     <execution>
265                         <!-- FIXME: remove this once we have karaf-4.2.10+ -->
266                         <id>remove-scr-2.1.20</id>
267                         <phase>prepare-package</phase>
268                         <goals>
269                             <goal>run</goal>
270                         </goals>
271                         <configuration>
272                             <target>
273                                 <delete dir="${project.build.directory}/assembly/system/org/apache/felix/org.apache.felix.scr/2.1.20"
274                                     includeemptydirs="true" failonerror="true"/>
275                             </target>
276                         </configuration>
277                     </execution>
278                 </executions>
279             </plugin>
280             <plugin>
281                 <groupId>org.apache.karaf.tooling</groupId>
282                 <artifactId>karaf-maven-plugin</artifactId>
283                 <version>${karaf.version}</version>
284                 <executions>
285                     <execution>
286                         <id>process-resources</id>
287                         <phase>process-resources</phase>
288                         <goals>
289                             <goal>assembly</goal>
290                         </goals>
291                     </execution>
292                     <execution>
293                         <id>package</id>
294                         <goals>
295                             <goal>archive</goal>
296                         </goals>
297                     </execution>
298                 </executions>
299                 <configuration>
300                     <installedFeatures>
301                         <feature>wrapper</feature>
302                     </installedFeatures>
303                     <bootFeatures>
304                         <feature>standard</feature>
305                         <!-- Features always assumed to be present. Keep in sync with feature parent exclusions. -->
306                         <feature>ssh</feature>
307                         <feature>scr</feature>
308                         <!-- Local feature if any -->
309                         <feature>${karaf.localFeature}</feature>
310                     </bootFeatures>
311                     <javase>1.8</javase>
312                     <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
313                     <archiveZip>${karaf.archiveZip}</archiveZip>
314                 </configuration>
315             </plugin>
316         </plugins>
317     </build>
318 </project>