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