7f6952331aed89a5268b74835cb77ea75a2b503b
[integration/distribution.git] / distribution-karaf / pom.xml
1 <?xml version="1.0"?>
2 <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">
3     <modelVersion>4.0.0</modelVersion>
4     <parent>
5         <groupId>org.opendaylight.odlparent</groupId>
6         <artifactId>karaf-parent</artifactId>
7         <version>1.8.0-SNAPSHOT</version>
8         <relativePath/>
9     </parent>
10     <groupId>org.opendaylight.integration</groupId>
11     <artifactId>distribution-karaf</artifactId>
12     <version>0.6.0-SNAPSHOT</version>
13     <packaging>pom</packaging>
14     <name>distribution:${project.artifactId}</name>
15     <description>The actual Karaf building sub-project.</description>
16     <url>https://wiki.opendaylight.org/view/Integration/Distribution</url>
17     <licenses>
18         <license>
19             <name>Eclipse Public License v1.0</name>
20             <url>http://www.eclipse.org/legal/epl-v10.html</url>
21         </license>
22     </licenses>
23     <!-- FIXME: Add developers section -->
24     <scm>
25         <connection>scm:git:https://git.opendaylight.org/gerrit/integration/distribution.git</connection>
26         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/integration/distribution.git</developerConnection>
27         <url>https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;f=distribution-karaf;hb=HEAD</url>
28         <tag>HEAD</tag>
29     </scm>
30     <dependencies>
31         <!-- opendaylight-karaf-parent uses this too -->
32         <dependency>
33             <groupId>org.apache.karaf.features</groupId>
34             <artifactId>framework</artifactId>
35             <type>kar</type>
36         </dependency>
37         <!-- integration feature -->
38         <dependency>
39             <artifactId>features-integration-index</artifactId>
40             <groupId>org.opendaylight.integration</groupId>
41             <version>${project.version}</version>
42             <classifier>features</classifier>
43             <type>xml</type>
44             <scope>runtime</scope>
45             <exclusions>
46                 <exclusion>
47                     <groupId>org.opendaylight.controller</groupId>
48                     <artifactId>opendaylight-karaf-empty</artifactId>
49                 </exclusion>
50                 <exclusion>
51                     <groupId>org.opendaylight.odlparent</groupId>
52                     <artifactId>opendaylight-karaf-empty</artifactId>
53                 </exclusion>
54             </exclusions>
55         </dependency>
56         <!-- integration test feature -->
57         <dependency>
58             <artifactId>features-integration-test</artifactId>
59             <groupId>org.opendaylight.integration</groupId>
60             <version>${project.version}</version>
61             <classifier>features</classifier>
62             <type>xml</type>
63             <scope>test</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
76         <!-- external application -->
77         <dependency>
78             <groupId>org.opendaylight.aaa</groupId>
79             <artifactId>aaa-cli-jar</artifactId>
80             <version>0.5.0-SNAPSHOT</version>
81         </dependency>
82     </dependencies>
83
84     <build>
85         <plugins>
86             <plugin>
87                 <groupId>org.apache.maven.plugins</groupId>
88                 <artifactId>maven-dependency-plugin</artifactId>
89                 <executions>
90                     <execution>
91                         <id>copy-aaa-cli-jar</id>
92                         <phase>prepare-package</phase>
93                         <goals>
94                             <goal>copy-dependencies</goal>
95                         </goals>
96                         <configuration>
97                             <outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
98                             <includeArtifactIds>aaa-cli-jar</includeArtifactIds>
99                             <overWriteReleases>true</overWriteReleases>
100                             <overWriteSnapshots>true</overWriteSnapshots>
101                             <overWriteIfNewer>true</overWriteIfNewer>
102                             <excludeTransitive>true</excludeTransitive>
103                         </configuration>
104                     </execution>
105                 </executions>
106             </plugin>
107         </plugins>
108     </build>
109 </project>