Bump versions to 9.0.1-SNAPSHOT
[odlparent.git] / karaf / karaf-dist-static / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright (c) 2020 PANTHEON.tech, s.r.o. 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>9.0.1-SNAPSHOT</version>
18         <relativePath>../../odlparent</relativePath>
19     </parent>
20
21     <artifactId>karaf-dist-static</artifactId>
22     <version>9.0.1-SNAPSHOT</version>
23     <packaging>pom</packaging>
24     <name>ODL :: odlparent :: ${project.artifactId}</name>
25     <description>
26         Baseline parent pom.xml for artifacts packaging a static Karaf distribution.
27     </description>
28
29     <properties>
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>static</artifactId>
39                 <version>${karaf.version}</version>
40             </dependency>
41             <dependency>
42                 <groupId>org.apache.karaf.features</groupId>
43                 <artifactId>standard</artifactId>
44                 <version>${karaf.version}</version>
45             </dependency>
46             <dependency>
47                 <groupId>org.apache.karaf.features</groupId>
48                 <artifactId>framework</artifactId>
49                 <version>${karaf.version}</version>
50             </dependency>
51             <dependency>
52                 <groupId>org.bouncycastle</groupId>
53                 <artifactId>bcpkix-jdk15on</artifactId>
54             </dependency>
55             <dependency>
56                 <groupId>org.bouncycastle</groupId>
57                 <artifactId>bcprov-jdk15on</artifactId>
58             </dependency>
59         </dependencies>
60     </dependencyManagement>
61
62     <dependencies>
63         <!-- karaf static distribution -->
64         <dependency>
65             <groupId>org.apache.karaf.features</groupId>
66             <artifactId>static</artifactId>
67             <type>kar</type>
68         </dependency>
69         <dependency>
70             <groupId>org.apache.karaf.features</groupId>
71             <artifactId>standard</artifactId>
72             <classifier>features</classifier>
73             <type>xml</type>
74         </dependency>
75         <dependency>
76             <groupId>org.apache.karaf.services</groupId>
77             <artifactId>org.apache.karaf.services.staticcm</artifactId>
78         </dependency>
79
80         <dependency>
81             <groupId>org.ops4j.pax.url</groupId>
82             <artifactId>pax-url-aether</artifactId>
83             <!-- FIXME: why do we need this version (maven-3.6.3 defaults to 2.5.4) -->
84             <version>2.6.5</version>
85         </dependency>
86
87         <!-- required by controller component -->
88         <dependency>
89             <groupId>org.apache.aries.quiesce</groupId>
90             <artifactId>org.apache.aries.quiesce.api</artifactId>
91         </dependency>
92
93         <!-- for https://jira.opendaylight.org/browse/ODLPARENT-24 -->
94         <dependency>
95             <groupId>org.osgi</groupId>
96             <artifactId>org.osgi.service.event</artifactId>
97         </dependency>
98
99         <!-- Optional dependency of karaf.config.core -->
100         <dependency>
101             <groupId>org.apache.felix</groupId>
102             <artifactId>org.apache.felix.metatype</artifactId>
103         </dependency>
104
105         <!-- ODL Branding -->
106         <dependency>
107             <groupId>org.opendaylight.odlparent</groupId>
108             <artifactId>karaf.branding</artifactId>
109         </dependency>
110
111         <!-- ODL configuration -->
112         <dependency>
113             <groupId>org.opendaylight.odlparent</groupId>
114             <artifactId>opendaylight-karaf-resources</artifactId>
115         </dependency>
116
117         <!-- BouncyCastle Framework Extension Bundles -->
118         <dependency>
119             <groupId>org.opendaylight.odlparent</groupId>
120             <artifactId>bcpkix-framework-ext</artifactId>
121         </dependency>
122         <dependency>
123             <groupId>org.opendaylight.odlparent</groupId>
124             <artifactId>bcprov-framework-ext</artifactId>
125         </dependency>
126     </dependencies>
127
128     <build>
129         <plugins>
130             <plugin>
131                 <artifactId>maven-remote-resources-plugin</artifactId>
132                 <configuration>
133                     <skip>true</skip>
134                 </configuration>
135             </plugin>
136             <plugin>
137                 <groupId>org.apache.maven.plugins</groupId>
138                 <artifactId>maven-dependency-plugin</artifactId>
139                 <executions>
140                     <execution>
141                         <id>apply-branding</id>
142                         <goals>
143                             <goal>copy</goal>
144                         </goals>
145                         <phase>prepare-package</phase>
146                         <configuration>
147                             <artifactItems>
148                                 <artifactItem>
149                                     <groupId>org.opendaylight.odlparent</groupId>
150                                     <artifactId>karaf.branding</artifactId>
151                                     <version>9.0.1-SNAPSHOT</version>
152                                     <outputDirectory>target/assembly/lib</outputDirectory>
153                                     <destFileName>karaf.branding-9.0.1-SNAPSHOT.jar</destFileName>
154                                 </artifactItem>
155                             </artifactItems>
156                             <silent>true</silent>
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                             <!-- Let maven plugin to configure start.properties  -->
170                             <!-- Don't apply monkey patches to artifacsts in the system repository  -->
171                             <excludes>META-INF/**,system/**,etc/startup.properties</excludes>-->
172                             <excludeTransitive>true</excludeTransitive>
173                             <ignorePermissions>false</ignorePermissions>
174                             <silent>true</silent>
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-antrun-plugin</artifactId>
203                 <executions>
204                     <execution>
205                         <id>fix-permissions</id>
206                         <phase>prepare-package</phase>
207                         <goals>
208                             <goal>run</goal>
209                         </goals>
210                         <configuration>
211                             <target>
212                                 <chmod perm="755">
213                                     <fileset dir="${project.build.directory}/assembly/bin">
214                                         <!-- Ensure that all the shell scripts are executable -->
215                                         <exclude name="*.bat"/>
216                                         <exclude name="contrib/*"/>
217                                     </fileset>
218                                 </chmod>
219                             </target>
220                         </configuration>
221                     </execution>
222                 </executions>
223             </plugin>
224             <plugin>
225                 <groupId>org.apache.karaf.tooling</groupId>
226                 <artifactId>karaf-maven-plugin</artifactId>
227                 <version>${karaf.version}</version>
228                 <extensions>true</extensions>
229                 <executions>
230                     <execution>
231                         <id>process-resources</id>
232                         <phase>process-resources</phase>
233                         <goals>
234                             <goal>assembly</goal>
235                         </goals>
236                     </execution>
237                     <execution>
238                         <id>package</id>
239                         <goals>
240                             <goal>archive</goal>
241                         </goals>
242                     </execution>
243                 </executions>
244                 <configuration>
245                     <startupBundles>
246                         <!-- FIXME: we want to generate these versions somehow -->
247                         <bundle>mvn:org.apache.felix/org.apache.felix.cm.json/1.0.2</bundle>
248                         <bundle>mvn:org.apache.felix/org.apache.felix.converter/1.0.14</bundle>
249                         <bundle>mvn:org.apache.felix/org.apache.felix.fileinstall/3.6.8</bundle>
250                         <bundle>mvn:org.apache.sling/org.apache.sling.commons.johnzon/1.2.6</bundle>
251                         <bundle>mvn:org.ops4j.pax.url/pax-url-aether/2.6.5</bundle>
252
253                         <bundle>mvn:org.opendaylight.odlparent/bcprov-framework-ext/9.0.1-SNAPSHOT</bundle>
254                         <bundle>mvn:org.opendaylight.odlparent/bcpkix-framework-ext/9.0.1-SNAPSHOT</bundle>
255                     </startupBundles>
256                     <startupFeatures>
257                         <feature>static-framework</feature>
258                         <feature>scr</feature>
259                         <feature>log</feature>
260                         <feature>system</feature>
261                         <!-- disable shell by default-->
262                         <!-- <feature>shell</feature>-->
263                         <feature>feature</feature>
264                         <feature>deployer</feature>
265                         <feature>wrap</feature>
266                         <feature>aries-blueprint</feature>
267                         <feature>eventadmin</feature>
268                     </startupFeatures>
269                     <writeProfiles>true</writeProfiles>
270                     <framework>static</framework>
271                     <useReferenceUrls>true</useReferenceUrls>
272                     <environment>static</environment>
273                     <javase>${maven.compiler.release}</javase>
274                     <archiveTarGz>${karaf.archiveTarGz}</archiveTarGz>
275                     <archiveZip>${karaf.archiveZip}</archiveZip>
276                 </configuration>
277             </plugin>
278         </plugins>
279     </build>
280 </project>