Bump versions to 6.0.4-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>6.0.4-SNAPSHOT</version>
18         <relativePath>../../odlparent</relativePath>
19     </parent>
20
21     <groupId>org.opendaylight.odlparent</groupId>
22     <artifactId>karaf4-parent</artifactId>
23     <version>6.0.4-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>6.0.4-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>6.0.4-SNAPSHOT</version>
153                                     <outputDirectory>target/assembly/lib</outputDirectory>
154                                     <destFileName>karaf.branding-3.0.4-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                     <execution>
199                         <!-- Override karaf-4.2.6+ use of pax-logging-1.10.2+ -->
200                         <id>add-pax-logging-1.10.1</id>
201                         <goals>
202                             <goal>copy</goal>
203                         </goals>
204                         <phase>prepare-package</phase>
205                         <configuration>
206                             <artifactItems>
207                                 <artifactItem>
208                                     <groupId>org.ops4j.pax.logging</groupId>
209                                     <artifactId>pax-logging-api</artifactId>
210                                     <version>1.10.1</version>
211                                     <outputDirectory>${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-api/1.10.1</outputDirectory>
212                                 </artifactItem>
213                                 <artifactItem>
214                                     <groupId>org.ops4j.pax.logging</groupId>
215                                     <artifactId>pax-logging-logback</artifactId>
216                                     <version>1.10.1</version>
217                                     <outputDirectory>${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-logback/1.10.1</outputDirectory>
218                                 </artifactItem>
219                                 <artifactItem>
220                                     <groupId>org.ops4j.pax.logging</groupId>
221                                     <artifactId>pax-logging-log4j2</artifactId>
222                                     <version>1.10.1</version>
223                                     <outputDirectory>${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-log4j2/1.10.1</outputDirectory>
224                                 </artifactItem>
225                             </artifactItems>
226                             <overWriteReleases>true</overWriteReleases>
227                             <overWriteSnapshots>true</overWriteSnapshots>
228                         </configuration>
229                     </execution>
230                 </executions>
231             </plugin>
232             <plugin>
233                 <artifactId>maven-resources-plugin</artifactId>
234                 <executions>
235                     <execution>
236                         <id>copy-resources</id>
237                         <phase>prepare-package</phase>
238                         <goals>
239                             <goal>copy-resources</goal>
240                         </goals>
241                         <configuration>
242                             <outputDirectory>${basedir}/target/assembly</outputDirectory>
243                             <resources>
244                                 <resource>
245                                     <directory>src/main/assembly</directory>
246                                 </resource>
247                             </resources>
248                             <overwrite>true</overwrite>
249                         </configuration>
250                     </execution>
251                     <execution>
252                         <id>process-resources</id>
253                         <goals>
254                             <goal>resources</goal>
255                         </goals>
256                     </execution>
257                 </executions>
258             </plugin>
259             <plugin>
260                 <groupId>org.opendaylight.odlparent</groupId>
261                 <artifactId>karaf-plugin</artifactId>
262                 <executions>
263                     <execution>
264                         <id>populate-local-repo</id>
265                         <phase>prepare-package</phase>
266                         <goals>
267                             <goal>populate-local-repo</goal>
268                         </goals>
269                         <configuration>
270                             <localRepo>${project.build.directory}/assembly/system</localRepo>
271                         </configuration>
272                     </execution>
273                 </executions>
274             </plugin>
275             <plugin>
276                 <artifactId>maven-antrun-plugin</artifactId>
277                 <executions>
278                     <execution>
279                         <id>fix-permissions</id>
280                         <phase>prepare-package</phase>
281                         <goals>
282                             <goal>run</goal>
283                         </goals>
284                         <configuration>
285                             <target>
286                                 <chmod perm="755">
287                                     <fileset dir="${project.build.directory}/assembly/bin">
288                                         <!-- Ensure that all the shell scripts are executable -->
289                                         <exclude name="*.bat"/>
290                                         <exclude name="contrib/*"/>
291                                     </fileset>
292                                 </chmod>
293                             </target>
294                         </configuration>
295                     </execution>
296                     <execution>
297                         <id>remove-pax-logging-1.10.2</id>
298                         <phase>prepare-package</phase>
299                         <goals>
300                             <goal>run</goal>
301                         </goals>
302                         <configuration>
303                             <target>
304                                 <delete dir="${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-api/1.10.2"
305                                     includeemptydirs="true"/>
306                                 <delete dir="${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-logback/1.10.2"
307                                     includeemptydirs="true"/>
308                                 <delete dir="${project.build.directory}/assembly/system/org/ops4j/pax/logging/pax-logging-log4j2/1.10.2"
309                                     includeemptydirs="true"/>
310                             </target>
311                         </configuration>
312                     </execution>
313                 </executions>
314             </plugin>
315             <plugin>
316                 <groupId>org.apache.karaf.tooling</groupId>
317                 <artifactId>karaf-maven-plugin</artifactId>
318                 <version>${karaf.version}</version>
319                 <executions>
320                     <execution>
321                         <id>process-resources</id>
322                         <phase>process-resources</phase>
323                         <goals>
324                             <goal>assembly</goal>
325                         </goals>
326                     </execution>
327                     <execution>
328                         <id>package</id>
329                         <goals>
330                             <goal>archive</goal>
331                         </goals>
332                     </execution>
333                 </executions>
334                 <configuration>
335                     <installedFeatures>
336                         <feature>wrapper</feature>
337                     </installedFeatures>
338                     <bootFeatures>
339                         <feature>standard</feature>
340                         <!-- Features always assumed to be present. Keep in sync with feature parent exclusions. -->
341                         <feature>ssh</feature>
342                         <!-- Local feature if any -->
343                         <feature>${karaf.localFeature}</feature>
344                     </bootFeatures>
345                     <javase>1.8</javase>
346                     <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
347                     <archiveZip>${karaf.archiveZip}</archiveZip>
348                 </configuration>
349             </plugin>
350         </plugins>
351     </build>
352 </project>