Bump versions to 3.1.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>3.1.2-SNAPSHOT</version>
18         <relativePath>../../odlparent</relativePath>
19     </parent>
20
21     <groupId>org.opendaylight.odlparent</groupId>
22     <artifactId>karaf4-parent</artifactId>
23     <version>3.1.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         <dependency>
89             <groupId>org.bouncycastle</groupId>
90             <artifactId>bcprov-jdk15on</artifactId>
91         </dependency>
92         <dependency>
93             <groupId>org.bouncycastle</groupId>
94             <artifactId>bcpkix-jdk15on</artifactId>
95         </dependency>
96         <dependency>
97             <groupId>org.bouncycastle</groupId>
98             <artifactId>bcprov-ext-jdk15on</artifactId>
99         </dependency>
100
101         <!-- Optional dependency of karaf.config.core -->
102         <dependency>
103             <groupId>org.apache.felix</groupId>
104             <artifactId>org.apache.felix.metatype</artifactId>
105         </dependency>
106
107         <!-- ODL Branding -->
108         <dependency>
109             <groupId>org.opendaylight.odlparent</groupId>
110             <artifactId>karaf.branding</artifactId>
111         </dependency>
112         <!-- ODL configuration -->
113         <dependency>
114             <groupId>org.opendaylight.odlparent</groupId>
115             <artifactId>opendaylight-karaf-resources</artifactId>
116         </dependency>
117
118         <!-- Patched dependencies (see opendaylight-karaf-resources) -->
119         <dependency>
120             <groupId>org.ow2.asm</groupId>
121             <artifactId>asm-all</artifactId>
122             <version>5.0.4</version>
123             <scope>provided</scope>
124         </dependency>
125         <dependency>
126             <groupId>commons-collections</groupId>
127             <artifactId>commons-collections</artifactId>
128             <version>3.2.2</version>
129             <scope>provided</scope>
130         </dependency>
131         <dependency>
132             <groupId>javax.mail</groupId>
133             <artifactId>mail</artifactId>
134             <version>1.4.4</version>
135             <scope>provided</scope>
136         </dependency>
137     </dependencies>
138
139     <build>
140         <plugins>
141             <plugin>
142                 <artifactId>maven-remote-resources-plugin</artifactId>
143                 <configuration>
144                     <skip>true</skip>
145                 </configuration>
146             </plugin>
147             <plugin>
148                 <groupId>org.opendaylight.odlparent</groupId>
149                 <artifactId>karaf-plugin</artifactId>
150                 <version>3.1.2-SNAPSHOT</version>
151                 <executions>
152                     <execution>
153                         <id>populate-local-repo</id>
154                         <phase>prepare-package</phase>
155                         <goals>
156                             <goal>populate-local-repo</goal>
157                         </goals>
158                         <configuration>
159                             <localRepo>${project.build.directory}/assembly/system</localRepo>
160                         </configuration>
161                     </execution>
162                 </executions>
163             </plugin>
164             <plugin>
165                 <groupId>org.apache.maven.plugins</groupId>
166                 <artifactId>maven-dependency-plugin</artifactId>
167                 <executions>
168                     <execution>
169                         <id>copy</id>
170                         <goals>
171                             <goal>copy</goal>
172                         </goals>
173                         <phase>prepare-package</phase>
174                         <configuration>
175                             <artifactItems>
176                                 <artifactItem>
177                                     <groupId>org.opendaylight.odlparent</groupId>
178                                     <artifactId>karaf.branding</artifactId>
179                                     <version>3.1.2-SNAPSHOT</version>
180                                     <outputDirectory>target/assembly/lib</outputDirectory>
181                                     <destFileName>karaf.branding-3.1.2-SNAPSHOT.jar</destFileName>
182                                 </artifactItem>
183                             </artifactItems>
184                         </configuration>
185                     </execution>
186                     <execution>
187                         <id>unpack-karaf-resources</id>
188                         <goals>
189                             <goal>unpack-dependencies</goal>
190                         </goals>
191                         <phase>prepare-package</phase>
192                         <configuration>
193                             <outputDirectory>${project.build.directory}/assembly</outputDirectory>
194                             <groupId>org.opendaylight.odlparent</groupId>
195                             <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
196                             <excludes>META-INF\/**</excludes>
197                             <excludeTransitive>true</excludeTransitive>
198                             <ignorePermissions>false</ignorePermissions>
199                         </configuration>
200                     </execution>
201                     <execution>
202                         <id>org.ops4j.pax.url.mvn.cfg</id>
203                         <goals>
204                             <goal>copy</goal>
205                         </goals>
206                         <phase>prepare-package</phase>
207                         <configuration>
208                             <artifactItems>
209                                 <artifactItem>
210                                     <groupId>org.opendaylight.odlparent</groupId>
211                                     <artifactId>opendaylight-karaf-resources</artifactId>
212                                     <type>properties</type>
213                                     <classifier>config</classifier>
214                                     <overWrite>true</overWrite>
215                                     <outputDirectory>${project.build.directory}/assembly/etc/</outputDirectory>
216                                     <destFileName>org.ops4j.pax.url.mvn.cfg</destFileName>
217                                 </artifactItem>
218                             </artifactItems>
219                             <overWriteReleases>true</overWriteReleases>
220                             <overWriteSnapshots>true</overWriteSnapshots>
221                         </configuration>
222                     </execution>
223                 </executions>
224             </plugin>
225             <plugin>
226                 <artifactId>maven-resources-plugin</artifactId>
227                 <executions>
228                     <execution>
229                         <id>copy-resources</id>
230                         <phase>prepare-package</phase>
231                         <goals>
232                             <goal>copy-resources</goal>
233                         </goals>
234                         <configuration>
235                             <outputDirectory>${basedir}/target/assembly</outputDirectory>
236                             <resources>
237                                 <resource>
238                                     <directory>src/main/assembly</directory>
239                                 </resource>
240                             </resources>
241                             <overwrite>true</overwrite>
242                         </configuration>
243                     </execution>
244                     <execution>
245                         <id>process-resources</id>
246                         <goals>
247                             <goal>resources</goal>
248                         </goals>
249                     </execution>
250                 </executions>
251             </plugin>
252             <plugin>
253                 <artifactId>maven-antrun-plugin</artifactId>
254                 <executions>
255                     <execution>
256                         <id>fix-permissions</id>
257                         <phase>prepare-package</phase>
258                         <goals>
259                             <goal>run</goal>
260                         </goals>
261                         <configuration>
262                             <target>
263                                 <chmod perm="755">
264                                     <fileset dir="${project.build.directory}/assembly/bin">
265                                         <!-- Ensure that all the shell scripts are executable -->
266                                         <exclude name="*.bat"/>
267                                         <exclude name="contrib/*"/>
268                                     </fileset>
269                                 </chmod>
270                             </target>
271                         </configuration>
272                     </execution>
273                 </executions>
274             </plugin>
275             <plugin>
276                 <groupId>org.apache.karaf.tooling</groupId>
277                 <artifactId>karaf-maven-plugin</artifactId>
278                 <version>${karaf.plugin.version}</version>
279                 <executions>
280                     <execution>
281                         <id>process-resources</id>
282                         <phase>process-resources</phase>
283                         <goals>
284                             <goal>assembly</goal>
285                         </goals>
286                     </execution>
287                     <execution>
288                         <id>package</id>
289                         <goals>
290                             <goal>archive</goal>
291                         </goals>
292                     </execution>
293                 </executions>
294                 <configuration>
295                     <installedFeatures>
296                         <feature>wrapper</feature>
297                     </installedFeatures>
298                     <bootFeatures>
299                         <feature>standard</feature>
300                         <!-- Features always assumed to be present. Keep in sync with feature parent exclusions. -->
301                         <feature>ssh</feature>
302                         <!-- Local feature if any -->
303                         <feature>${karaf.localFeature}</feature>
304                     </bootFeatures>
305                     <javase>1.8</javase>
306                     <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
307                     <archiveZip>${karaf.archiveZip}</archiveZip>
308                 </configuration>
309             </plugin>
310         </plugins>
311     </build>
312 </project>