Improve Karaf3 features before Karaf4 migration
[integration/distribution.git] / distribution-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>karaf-parent</artifactId>
15         <version>1.8.0-SNAPSHOT</version>
16         <relativePath/>
17     </parent>
18     <groupId>org.opendaylight.integration</groupId>
19     <!-- TODO: Rename to "distribution" or "karaf". -->
20     <artifactId>distribution-karaf</artifactId>
21     <version>0.6.0-SNAPSHOT</version>
22     <packaging>pom</packaging>
23     <name>distribution:${project.artifactId}</name>
24     <description>The actual Karaf building sub-project.</description>
25     <url>https://wiki.opendaylight.org/view/Integration/Distribution</url>
26     <licenses>
27         <license>
28             <name>Eclipse Public License v1.0</name>
29             <url>http://www.eclipse.org/legal/epl-v10.html</url>
30         </license>
31     </licenses>
32     <!-- FIXME: Add developers section -->
33     <scm>
34         <connection>scm:git:https://git.opendaylight.org/gerrit/integration/distribution.git</connection>
35         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/integration/distribution.git</developerConnection>
36         <url>https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;f=distribution-karaf;hb=HEAD</url>
37         <tag>HEAD</tag>
38     </scm>
39     <dependencyManagement>
40         <dependencies>
41             <dependency>
42                 <groupId>${project.groupId}</groupId>
43                 <artifactId>all-artifacts</artifactId>
44                 <version>${project.version}</version>
45                 <scope>import</scope>
46                 <type>pom</type>
47             </dependency>
48         </dependencies>
49     </dependencyManagement>
50     <dependencies>
51         <!-- opendaylight-karaf-parent uses this too -->
52         <dependency>
53             <groupId>org.apache.karaf.features</groupId>
54             <artifactId>framework</artifactId>
55             <type>kar</type>
56         </dependency>
57         <!-- Integration index feature repository. -->
58         <dependency>
59             <artifactId>features-integration-index</artifactId>
60             <groupId>org.opendaylight.integration</groupId>
61             <classifier>features</classifier>
62             <type>xml</type>
63             <scope>runtime</scope>
64             <exclusions>
65                 <exclusion>
66                     <groupId>org.opendaylight.controller</groupId>
67                     <artifactId>opendaylight-karaf-empty</artifactId>
68                 </exclusion>
69                 <exclusion>
70                     <groupId>org.opendaylight.odlparent</groupId>
71                     <artifactId>opendaylight-karaf-empty</artifactId>
72                 </exclusion>
73             </exclusions>
74         </dependency>
75         <!-- Integration test feature repository. -->
76         <dependency>
77             <artifactId>features-integration-test</artifactId>
78             <groupId>org.opendaylight.integration</groupId>
79             <classifier>features</classifier>
80             <type>xml</type>
81             <scope>test</scope>
82             <exclusions>
83                 <exclusion>
84                     <groupId>org.opendaylight.controller</groupId>
85                     <artifactId>opendaylight-karaf-empty</artifactId>
86                 </exclusion>
87                 <exclusion>
88                     <groupId>org.opendaylight.odlparent</groupId>
89                     <artifactId>opendaylight-karaf-empty</artifactId>
90                 </exclusion>
91             </exclusions>
92         </dependency>
93
94         <!-- External applications. -->
95         <dependency>
96             <groupId>org.opendaylight.aaa</groupId>
97             <artifactId>aaa-cli-jar</artifactId>
98         </dependency>
99     </dependencies>
100
101     <build>
102         <plugins>
103             <plugin>
104                 <groupId>org.apache.maven.plugins</groupId>
105                 <artifactId>maven-dependency-plugin</artifactId>
106                 <executions>
107                     <execution>
108                         <id>copy-aaa-cli-jar</id>
109                         <phase>prepare-package</phase>
110                         <goals>
111                             <goal>copy-dependencies</goal>
112                         </goals>
113                         <configuration>
114                             <outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
115                             <includeArtifactIds>aaa-cli-jar</includeArtifactIds>
116                             <overWriteReleases>true</overWriteReleases>
117                             <overWriteSnapshots>true</overWriteSnapshots>
118                             <overWriteIfNewer>true</overWriteIfNewer>
119                             <excludeTransitive>true</excludeTransitive>
120                         </configuration>
121                     </execution>
122                 </executions>
123             </plugin>
124         </plugins>
125     </build>
126 </project>