Migrate to odlparent 2.0.0
[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"
11          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
12          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
13     <modelVersion>4.0.0</modelVersion>
14     <parent>
15         <groupId>org.opendaylight.odlparent</groupId>
16         <artifactId>karaf4-parent</artifactId>
17         <version>2.0.0</version>
18         <relativePath/>
19     </parent>
20     <groupId>org.opendaylight.integration</groupId>
21     <artifactId>karaf</artifactId>
22     <version>0.7.0-SNAPSHOT</version>
23     <packaging>pom</packaging>
24     <!-- <name> formatting is used by autorelease to parse and notify projects on
25          build failure. Please do not modify this unless you have a good reason. -->
26     <name>ODL :: integration :: ${project.artifactId}</name>
27     <description>The actual Karaf archive building sub-project.</description>
28     <url>https://wiki.opendaylight.org/view/Integration/Distribution</url>
29     <licenses>
30         <license>
31             <name>Eclipse Public License v1.0</name>
32             <url>http://www.eclipse.org/legal/epl-v10.html</url>
33         </license>
34     </licenses>
35     <!-- FIXME: Add developers section -->
36     <scm>
37         <connection>scm:git:https://git.opendaylight.org/gerrit/integration/distribution.git</connection>
38         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/integration/distribution.git</developerConnection>
39         <url>https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;f=karaf;hb=HEAD</url>
40         <tag>HEAD</tag>
41     </scm>
42     <dependencyManagement>
43         <dependencies>
44             <dependency>
45                 <groupId>${project.groupId}</groupId>
46                 <artifactId>all-artifacts</artifactId>
47                 <version>${project.version}</version>
48                 <scope>import</scope>
49                 <type>pom</type>
50             </dependency>
51         </dependencies>
52     </dependencyManagement>
53     <dependencies>
54         <!-- Integration index feature repository. -->
55         <dependency>
56             <groupId>${project.groupId}</groupId>
57             <artifactId>features-index</artifactId>
58             <classifier>features</classifier>
59             <type>xml</type>
60             <scope>runtime</scope>
61             <exclusions>
62                 <exclusion>
63                     <groupId>org.opendaylight.odlparent</groupId>
64                     <artifactId>opendaylight-karaf4-empty</artifactId>
65                 </exclusion>
66                 <exclusion>
67                     <groupId>org.opendaylight.controller</groupId>
68                     <artifactId>opendaylight-karaf-empty</artifactId>
69                 </exclusion>
70                 <exclusion>
71                     <groupId>org.opendaylight.odlparent</groupId>
72                     <artifactId>opendaylight-karaf-empty</artifactId>
73                 </exclusion>
74             </exclusions>
75         </dependency>
76         <!-- Integration test feature repository. -->
77         <dependency>
78             <groupId>${project.groupId}</groupId>
79             <artifactId>features-test</artifactId>
80             <classifier>features</classifier>
81             <type>xml</type>
82             <scope>test</scope>
83             <exclusions>
84                 <exclusion>
85                     <groupId>org.opendaylight.odlparent</groupId>
86                     <artifactId>opendaylight-karaf4-empty</artifactId>
87                 </exclusion>
88                 <exclusion>
89                     <groupId>org.opendaylight.controller</groupId>
90                     <artifactId>opendaylight-karaf-empty</artifactId>
91                 </exclusion>
92                 <exclusion>
93                     <groupId>org.opendaylight.odlparent</groupId>
94                     <artifactId>opendaylight-karaf-empty</artifactId>
95                 </exclusion>
96             </exclusions>
97         </dependency>
98
99         <!-- External applications. -->
100         <!-- This leads to "Unsupported 'Bundle-ManifestVersion' value: 1". Uncomment when fixed.
101         <dependency>
102             <groupId>org.opendaylight.aaa</groupId>
103             <artifactId>aaa-cli-jar</artifactId>
104         </dependency>
105         -->
106     </dependencies>
107
108     <build>
109         <plugins>
110             <!-- This leads to "Unsupported 'Bundle-ManifestVersion' value: 1". Uncomment when fixed.
111             <plugin>
112                 <groupId>org.apache.maven.plugins</groupId>
113                 <artifactId>maven-dependency-plugin</artifactId>
114                 <executions>
115                     <execution>
116                         <id>copy-aaa-cli-jar</id>
117                         <phase>prepare-package</phase>
118                         <goals>
119                             <goal>copy-dependencies</goal>
120                         </goals>
121                         <configuration>
122                             <outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
123                             <includeArtifactIds>aaa-cli-jar</includeArtifactIds>
124                             <overWriteReleases>true</overWriteReleases>
125                             <overWriteSnapshots>true</overWriteSnapshots>
126                             <overWriteIfNewer>true</overWriteIfNewer>
127                             <excludeTransitive>true</excludeTransitive>
128                             < ! - - Do not include version in JAR filename, as external scripts call this utility,
129                                  and they understandly do not want to have to adjust for every ODL release;
130                                  see e.g. https://github.com/dfarrell07/puppet-opendaylight/pull/140 - - >
131                             <stripVersion>true</stripVersion>
132                         </configuration>
133                     </execution>
134                 </executions>
135             </plugin>
136             -->
137         </plugins>
138     </build>
139 </project>