Release integration/distribution
[integration/distribution.git] / onap-karaf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
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
4     <parent>
5         <groupId>org.opendaylight.odlparent</groupId>
6         <artifactId>karaf4-parent</artifactId>
7         <version>8.1.9</version>
8         <relativePath/>
9     </parent>
10
11     <groupId>org.opendaylight.integration</groupId>
12     <artifactId>onap-karaf</artifactId>
13     <version>0.14.5</version>
14     <packaging>pom</packaging>
15     <name>ODL :: integration :: ${project.artifactId}</name>
16     <modelVersion>4.0.0</modelVersion>
17
18     <description>The ONAP Karaf distribution.</description>
19     <url>https://wiki.opendaylight.org/view/Integration/Distribution</url>
20     <licenses>
21         <license>
22             <name>Eclipse Public License v1.0</name>
23             <url>http://www.eclipse.org/legal/epl-v10.html</url>
24         </license>
25     </licenses>
26
27     <properties>
28         <karaf.archiveZip>false</karaf.archiveZip>
29         <karaf.archiveTarGz>true</karaf.archiveTarGz>
30     </properties>
31
32     <dependencyManagement>
33         <dependencies>
34             <dependency>
35                 <groupId>org.opendaylight.integration</groupId>
36                 <artifactId>all-artifacts</artifactId>
37                 <version>${project.version}</version>
38                 <scope>import</scope>
39                 <type>pom</type>
40             </dependency>
41         </dependencies>
42     </dependencyManagement>
43
44     <dependencies>
45
46         <!-- AAA -->
47         <dependency>
48             <groupId>org.opendaylight.aaa</groupId>
49             <artifactId>features-aaa</artifactId>
50             <classifier>features</classifier>
51             <type>xml</type>
52             <scope>runtime</scope>
53         </dependency>
54
55         <!-- Controller -->
56         <dependency>
57             <groupId>org.opendaylight.controller</groupId>
58             <artifactId>features-controller</artifactId>
59             <classifier>features</classifier>
60             <type>xml</type>
61             <scope>runtime</scope>
62         </dependency>
63         <dependency>
64             <groupId>org.opendaylight.controller</groupId>
65             <artifactId>features-controller-experimental</artifactId>
66             <classifier>features</classifier>
67             <type>xml</type>
68             <scope>runtime</scope>
69         </dependency>
70
71         <!-- Daexim -->
72         <dependency>
73             <groupId>org.opendaylight.daexim</groupId>
74             <artifactId>daexim-features</artifactId>
75             <classifier>features</classifier>
76             <type>xml</type>
77             <scope>runtime</scope>
78         </dependency>
79
80         <!-- MD-SAL -->
81         <dependency>
82             <groupId>org.opendaylight.mdsal</groupId>
83             <artifactId>features-mdsal</artifactId>
84             <classifier>features</classifier>
85             <type>xml</type>
86             <scope>runtime</scope>
87         </dependency>
88
89         <!-- Netconf -->
90         <dependency>
91             <groupId>org.opendaylight.netconf</groupId>
92             <artifactId>features-netconf</artifactId>
93             <classifier>features</classifier>
94             <type>xml</type>
95             <scope>runtime</scope>
96         </dependency>
97         <dependency>
98             <groupId>org.opendaylight.netconf</groupId>
99             <artifactId>features-netconf-connector</artifactId>
100             <classifier>features</classifier>
101             <type>xml</type>
102             <scope>runtime</scope>
103         </dependency>
104         <dependency>
105             <groupId>org.opendaylight.netconf</groupId>
106             <artifactId>features-restconf</artifactId>
107             <classifier>features</classifier>
108             <type>xml</type>
109             <scope>runtime</scope>
110         </dependency>
111         <dependency>
112             <groupId>org.opendaylight.netconf</groupId>
113             <artifactId>features-yanglib</artifactId>
114             <classifier>features</classifier>
115             <type>xml</type>
116             <scope>runtime</scope>
117         </dependency>
118
119         <!--ODL Parent-->
120         <dependency>
121             <groupId>org.opendaylight.odlparent</groupId>
122             <artifactId>features-odlparent</artifactId>
123             <classifier>features</classifier>
124             <type>xml</type>
125             <scope>runtime</scope>
126         </dependency>
127
128         <dependency>
129             <groupId>org.opendaylight.aaa</groupId>
130             <artifactId>aaa-cli-jar</artifactId>
131             <!-- 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 -->
132             <scope>test</scope>
133         </dependency>
134         <dependency>
135             <groupId>org.opendaylight.integration</groupId>
136             <artifactId>karaf-scripts</artifactId>
137             <version>${project.version}</version>
138             <scope>test</scope>
139         </dependency>
140
141     </dependencies>
142
143     <build>
144         <plugins>
145             <plugin>
146                 <groupId>org.apache.maven.plugins</groupId>
147                 <artifactId>maven-dependency-plugin</artifactId>
148                 <executions>
149                     <execution>
150                         <id>copy-aaa-cli-jar</id>
151                         <phase>prepare-package</phase>
152                         <goals>
153                             <goal>copy-dependencies</goal>
154                         </goals>
155                         <configuration>
156                             <outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
157                             <includeArtifactIds>aaa-cli-jar</includeArtifactIds>
158                             <overWriteReleases>true</overWriteReleases>
159                             <overWriteSnapshots>true</overWriteSnapshots>
160                             <overWriteIfNewer>true</overWriteIfNewer>
161                             <excludeTransitive>true</excludeTransitive>
162                             <!-- Do not include version in JAR filename, as external scripts call this utility,
163                                  and they understandly do not want to have to adjust for every ODL release;
164                                  see e.g. https://github.com/dfarrell07/puppet-opendaylight/pull/140 -->
165                             <stripVersion>true</stripVersion>
166                         </configuration>
167                     </execution>
168                     <execution>
169                         <id>unpack-odl-karaf-resources</id>
170                         <goals>
171                             <goal>unpack-dependencies</goal>
172                         </goals>
173                         <phase>prepare-package</phase>
174                         <configuration>
175                             <outputDirectory>${project.build.directory}/assembly</outputDirectory>
176                             <groupId>org.opendaylight.integration</groupId>
177                             <includeArtifactIds>karaf-scripts</includeArtifactIds>
178                             <excludes>META-INF\/**</excludes>
179                             <excludeTransitive>true</excludeTransitive>
180                             <ignorePermissions>false</ignorePermissions>
181                         </configuration>
182                     </execution>
183                 </executions>
184             </plugin>
185         </plugins>
186     </build>
187
188 </project>
189