Update version after SR release
[integration/distribution.git] / karaf / pom.xml
1 <?xml version="1.0"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2014-2017 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
11     <modelVersion>4.0.0</modelVersion>
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>karaf4-parent</artifactId>
15         <version>3.1.7</version>
16         <relativePath/>
17     </parent>
18     <groupId>org.opendaylight.integration</groupId>
19     <artifactId>karaf</artifactId>
20     <version>0.9.4-SNAPSHOT</version>
21     <packaging>pom</packaging>
22     <!-- <name> formatting is used by autorelease to parse and notify projects on
23          build failure. Please do not modify this unless you have a good reason. -->
24     <name>ODL :: integration :: ${project.artifactId}</name>
25     <description>The actual Karaf archive building sub-project.</description>
26     <url>https://wiki.opendaylight.org/view/Integration/Distribution</url>
27     <licenses>
28         <license>
29             <name>Eclipse Public License v1.0</name>
30             <url>http://www.eclipse.org/legal/epl-v10.html</url>
31         </license>
32     </licenses>
33     <!-- FIXME: Add developers section -->
34     <scm>
35         <connection>scm:git:https://git.opendaylight.org/gerrit/integration/distribution.git</connection>
36         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/integration/distribution.git</developerConnection>
37         <url>https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;f=karaf;hb=HEAD</url>
38         <tag>HEAD</tag>
39     </scm>
40     <dependencyManagement>
41         <dependencies>
42             <dependency>
43                 <groupId>${project.groupId}</groupId>
44                 <artifactId>all-artifacts</artifactId>
45                 <version>${project.version}</version>
46                 <scope>import</scope>
47                 <type>pom</type>
48             </dependency>
49         </dependencies>
50     </dependencyManagement>
51     <dependencies>
52         <!-- Integration index feature repository. -->
53         <dependency>
54             <groupId>${project.groupId}</groupId>
55             <artifactId>features-index</artifactId>
56             <classifier>features</classifier>
57             <type>xml</type>
58             <scope>runtime</scope>
59             <exclusions>
60                 <exclusion>
61                     <groupId>org.opendaylight.odlparent</groupId>
62                     <artifactId>opendaylight-karaf4-empty</artifactId>
63                 </exclusion>
64                 <exclusion>
65                     <groupId>org.opendaylight.controller</groupId>
66                     <artifactId>opendaylight-karaf-empty</artifactId>
67                 </exclusion>
68                 <exclusion>
69                     <groupId>org.opendaylight.odlparent</groupId>
70                     <artifactId>opendaylight-karaf-empty</artifactId>
71                 </exclusion>
72             </exclusions>
73         </dependency>
74         <!-- Integration test feature repository. -->
75         <dependency>
76             <groupId>${project.groupId}</groupId>
77             <artifactId>features-test</artifactId>
78             <classifier>features</classifier>
79             <type>xml</type>
80             <scope>test</scope>
81             <exclusions>
82                 <exclusion>
83                     <groupId>org.opendaylight.odlparent</groupId>
84                     <artifactId>opendaylight-karaf4-empty</artifactId>
85                 </exclusion>
86                 <exclusion>
87                     <groupId>org.opendaylight.controller</groupId>
88                     <artifactId>opendaylight-karaf-empty</artifactId>
89                 </exclusion>
90                 <exclusion>
91                     <groupId>org.opendaylight.odlparent</groupId>
92                     <artifactId>opendaylight-karaf-empty</artifactId>
93                 </exclusion>
94             </exclusions>
95         </dependency>
96
97         <dependency>
98             <groupId>org.opendaylight.aaa</groupId>
99             <artifactId>aaa-cli-jar</artifactId>
100             <!-- This scope test here is just a trick, so that we can use aaa-cli-jar in maven-dependency-plugin, but don't have karaf-maven-plugin choke on it -->
101             <scope>test</scope>
102         </dependency>
103     </dependencies>
104
105     <build>
106         <plugins>
107             <plugin>
108                 <groupId>org.apache.maven.plugins</groupId>
109                 <artifactId>maven-dependency-plugin</artifactId>
110                 <executions>
111                     <execution>
112                         <id>copy-aaa-cli-jar</id>
113                         <phase>prepare-package</phase>
114                         <goals>
115                             <goal>copy-dependencies</goal>
116                         </goals>
117                         <configuration>
118                             <outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
119                             <includeArtifactIds>aaa-cli-jar</includeArtifactIds>
120                             <overWriteReleases>true</overWriteReleases>
121                             <overWriteSnapshots>true</overWriteSnapshots>
122                             <overWriteIfNewer>true</overWriteIfNewer>
123                             <excludeTransitive>true</excludeTransitive>
124                             <!-- Do not include version in JAR filename, as external scripts call this utility,
125                                  and they understandly do not want to have to adjust for every ODL release;
126                                  see e.g. https://github.com/dfarrell07/puppet-opendaylight/pull/140 -->
127                             <stripVersion>true</stripVersion>
128                         </configuration>
129                     </execution>
130                 </executions>
131             </plugin>
132
133             <!-- ODLPARENT-142: Heavy-handed workaround to remove mysql dependencies from system -->
134             <plugin>
135                 <groupId>org.apache.maven.plugins</groupId>
136                 <artifactId>maven-antrun-plugin</artifactId>
137                 <executions>
138                     <execution>
139                         <phase>prepare-package</phase>
140                         <goals>
141                             <goal>run</goal>
142                         </goals>
143                         <configuration>
144                             <tasks>
145                                 <delete includeemptydirs="true">
146                                     <fileset dir="${project.build.directory}/assembly/system/mysql"/>
147                                 </delete>
148                             </tasks>
149                         </configuration>
150                     </execution>
151                 </executions>
152             </plugin>
153         </plugins>
154     </build>
155
156     <profiles>
157         <profile>
158             <id>dependency-convergence</id>
159             <build>
160                 <plugins>
161                     <plugin>
162                         <artifactId>maven-enforcer-plugin</artifactId>
163                         <executions>
164                             <execution>
165                                 <id>enforce-dependency-convergence</id>
166                                 <goals>
167                                     <goal>enforce</goal>
168                                 </goals>
169                                 <configuration>
170                                     <rules>
171                                         <dependencyConvergence/>
172                                     </rules>
173                                 </configuration>
174                             </execution>
175                         </executions>
176                     </plugin>
177                 </plugins>
178             </build>
179         </profile>
180     </profiles>
181 </project>