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