Bump versions to 5.0.0-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>5.0.0-SNAPSHOT</version>
18         <relativePath>../../odlparent</relativePath>
19     </parent>
20
21     <groupId>org.opendaylight.odlparent</groupId>
22     <artifactId>karaf4-parent</artifactId>
23     <version>5.0.0-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>5.0.0-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>copy</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>5.0.0-SNAPSHOT</version>
153                                     <outputDirectory>target/assembly/lib</outputDirectory>
154                                     <destFileName>karaf.branding-3.0.0-SNAPSHOT.jar</destFileName>
155                                 </artifactItem>
156                             </artifactItems>
157                         </configuration>
158                     </execution>
159                     <execution>
160                         <id>unpack-karaf-resources</id>
161                         <goals>
162                             <goal>unpack-dependencies</goal>
163                         </goals>
164                         <phase>prepare-package</phase>
165                         <configuration>
166                             <outputDirectory>${project.build.directory}/assembly</outputDirectory>
167                             <groupId>org.opendaylight.odlparent</groupId>
168                             <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
169                             <excludes>META-INF\/**</excludes>
170                             <excludeTransitive>true</excludeTransitive>
171                             <ignorePermissions>false</ignorePermissions>
172                         </configuration>
173                     </execution>
174                     <execution>
175                         <id>org.ops4j.pax.url.mvn.cfg</id>
176                         <goals>
177                             <goal>copy</goal>
178                         </goals>
179                         <phase>prepare-package</phase>
180                         <configuration>
181                             <artifactItems>
182                                 <artifactItem>
183                                     <groupId>org.opendaylight.odlparent</groupId>
184                                     <artifactId>opendaylight-karaf-resources</artifactId>
185                                     <type>properties</type>
186                                     <classifier>config</classifier>
187                                     <overWrite>true</overWrite>
188                                     <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
189                                     <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
190                                 </artifactItem>
191                             </artifactItems>
192                             <overWriteReleases>true</overWriteReleases>
193                             <overWriteSnapshots>true</overWriteSnapshots>
194                         </configuration>
195                     </execution>
196                 </executions>
197             </plugin>
198             <plugin>
199                 <artifactId>maven-resources-plugin</artifactId>
200                 <executions>
201                     <execution>
202                         <id>copy-resources</id>
203                         <phase>prepare-package</phase>
204                         <goals>
205                             <goal>copy-resources</goal>
206                         </goals>
207                         <configuration>
208                             <outputDirectory>${basedir}/target/assembly</outputDirectory>
209                             <resources>
210                                 <resource>
211                                     <directory>src/main/assembly</directory>
212                                 </resource>
213                             </resources>
214                             <overwrite>true</overwrite>
215                         </configuration>
216                     </execution>
217                     <execution>
218                         <id>process-resources</id>
219                         <goals>
220                             <goal>resources</goal>
221                         </goals>
222                     </execution>
223                 </executions>
224             </plugin>
225             <plugin>
226                 <groupId>org.opendaylight.odlparent</groupId>
227                 <artifactId>karaf-plugin</artifactId>
228                 <executions>
229                     <execution>
230                         <id>populate-local-repo</id>
231                         <phase>prepare-package</phase>
232                         <goals>
233                             <goal>populate-local-repo</goal>
234                         </goals>
235                         <configuration>
236                             <localRepo>${project.build.directory}/assembly/system</localRepo>
237                         </configuration>
238                     </execution>
239                 </executions>
240             </plugin>
241             <plugin>
242                 <artifactId>maven-antrun-plugin</artifactId>
243                 <executions>
244                     <execution>
245                         <id>fix-permissions</id>
246                         <phase>prepare-package</phase>
247                         <goals>
248                             <goal>run</goal>
249                         </goals>
250                         <configuration>
251                             <target>
252                                 <chmod perm="755">
253                                     <fileset dir="${project.build.directory}/assembly/bin">
254                                         <!-- Ensure that all the shell scripts are executable -->
255                                         <exclude name="*.bat"/>
256                                         <exclude name="contrib/*"/>
257                                     </fileset>
258                                 </chmod>
259                             </target>
260                         </configuration>
261                     </execution>
262                 </executions>
263             </plugin>
264             <plugin>
265                 <groupId>org.apache.karaf.tooling</groupId>
266                 <artifactId>karaf-maven-plugin</artifactId>
267                 <!-- Revert to ${karaf.version} once the POM deployment issue is fixed -->
268                 <version>4.2.1</version>
269                 <executions>
270                     <execution>
271                         <id>process-resources</id>
272                         <phase>process-resources</phase>
273                         <goals>
274                             <goal>assembly</goal>
275                         </goals>
276                     </execution>
277                     <execution>
278                         <id>package</id>
279                         <goals>
280                             <goal>archive</goal>
281                         </goals>
282                     </execution>
283                 </executions>
284                 <configuration>
285                     <installedFeatures>
286                         <feature>wrapper</feature>
287                     </installedFeatures>
288                     <bootFeatures>
289                         <feature>standard</feature>
290                         <!-- Features always assumed to be present. Keep in sync with feature parent exclusions. -->
291                         <feature>ssh</feature>
292                         <!-- Local feature if any -->
293                         <feature>${karaf.localFeature}</feature>
294                     </bootFeatures>
295                     <javase>1.8</javase>
296                     <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
297                     <archiveZip>${karaf.archiveZip}</archiveZip>
298                 </configuration>
299             </plugin>
300         </plugins>
301     </build>
302 </project>