ef718f5dda7216ec7d5bb0c7bd061789faa85bc9
[ccsdk/distribution.git] / opendaylight / onap-distribution / fluorine / 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>3.1.4</version>
8         <relativePath/>
9     </parent>
10
11     <groupId>org.onap.ccsdk.distribution</groupId>
12     <artifactId>distribution-opendaylight-onap-fluorine-karaf</artifactId>
13     <version>0.4.1-SNAPSHOT</version>
14     <name>ccsdk-distribution :: onap :: opendaylight :: fluorine :: karaf</name>
15     <modelVersion>4.0.0</modelVersion>
16
17     <licenses>
18         <license>
19             <name>The Apache Software License, Version 2.0</name>
20             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
21             <distribution>repo</distribution>
22             <comments>OpenDaylight distribution build specific for ONAP projects.</comments>
23         </license>
24     </licenses>
25
26     <properties>
27         <!-- <karaf.localFeature></karaf.localFeature> -->
28         <opendaylight.version>0.9.1</opendaylight.version>
29     </properties>
30
31     <dependencyManagement>
32         <dependencies>
33             <dependency>
34                 <groupId>org.opendaylight.integration</groupId>
35                 <artifactId>all-artifacts</artifactId>
36                 <version>${opendaylight.version}</version>
37                 <scope>import</scope>
38                 <type>pom</type>
39             </dependency>
40         </dependencies>
41     </dependencyManagement>
42
43     <dependencies>
44
45         <!-- AAA -->
46         <dependency>
47             <groupId>org.opendaylight.aaa</groupId>
48             <artifactId>features-aaa</artifactId>
49             <classifier>features</classifier>
50             <type>xml</type>
51             <scope>runtime</scope>
52         </dependency>
53
54         <!-- Controller -->
55         <dependency>
56             <groupId>org.opendaylight.controller</groupId>
57             <artifactId>features-extras</artifactId>
58             <classifier>features</classifier>
59             <type>xml</type>
60             <scope>runtime</scope>
61         </dependency>
62         <dependency>
63             <groupId>org.opendaylight.controller</groupId>
64             <artifactId>features-mdsal</artifactId>
65             <classifier>features</classifier>
66             <type>xml</type>
67             <scope>runtime</scope>
68         </dependency>
69         <dependency>
70             <groupId>org.opendaylight.controller</groupId>
71             <artifactId>features-mdsal-benchmark</artifactId>
72             <classifier>features</classifier>
73             <type>xml</type>
74             <scope>runtime</scope>
75         </dependency>
76         <dependency>
77             <groupId>org.opendaylight.controller</groupId>
78             <artifactId>features-mdsal-trace</artifactId>
79             <classifier>features</classifier>
80             <type>xml</type>
81             <scope>runtime</scope>
82         </dependency>
83
84         <!-- Daexim -->
85         <dependency>
86             <groupId>org.opendaylight.daexim</groupId>
87             <artifactId>daexim-features</artifactId>
88             <classifier>features</classifier>
89             <type>xml</type>
90             <scope>runtime</scope>
91         </dependency>
92
93         <!-- Netconf -->
94         <dependency>
95             <groupId>org.opendaylight.netconf</groupId>
96             <artifactId>features-netconf</artifactId>
97             <classifier>features</classifier>
98             <type>xml</type>
99             <scope>runtime</scope>
100         </dependency>
101         <dependency>
102             <groupId>org.opendaylight.netconf</groupId>
103             <artifactId>features-netconf-connector</artifactId>
104             <classifier>features</classifier>
105             <type>xml</type>
106             <scope>runtime</scope>
107         </dependency>
108         <dependency>
109             <groupId>org.opendaylight.netconf</groupId>
110             <artifactId>features-restconf</artifactId>
111             <classifier>features</classifier>
112             <type>xml</type>
113             <scope>runtime</scope>
114         </dependency>
115         <dependency>
116             <groupId>org.opendaylight.netconf</groupId>
117             <artifactId>features-yanglib</artifactId>
118             <classifier>features</classifier>
119             <type>xml</type>
120             <scope>runtime</scope>
121         </dependency>
122
123         <!--ODL Parent-->
124         <dependency>
125             <groupId>org.opendaylight.odlparent</groupId>
126             <artifactId>features-akka</artifactId>
127             <classifier>features</classifier>
128             <type>xml</type>
129             <scope>runtime</scope>
130         </dependency>
131         <dependency>
132             <groupId>org.opendaylight.odlparent</groupId>
133             <artifactId>features-odlparent</artifactId>
134             <classifier>features</classifier>
135             <type>xml</type>
136             <scope>runtime</scope>
137         </dependency>
138
139         <dependency>
140             <groupId>org.opendaylight.aaa</groupId>
141             <artifactId>aaa-cli-jar</artifactId>
142             <!-- 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 -->
143             <scope>test</scope>
144         </dependency>
145     </dependencies>
146
147     <build>
148         <plugins>
149             <plugin>
150                 <groupId>org.apache.maven.plugins</groupId>
151                 <artifactId>maven-dependency-plugin</artifactId>
152                 <executions>
153                     <execution>
154                         <id>copy-aaa-cli-jar</id>
155                         <phase>prepare-package</phase>
156                         <goals>
157                             <goal>copy-dependencies</goal>
158                         </goals>
159                         <configuration>
160                             <outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
161                             <includeArtifactIds>aaa-cli-jar</includeArtifactIds>
162                             <overWriteReleases>true</overWriteReleases>
163                             <overWriteSnapshots>true</overWriteSnapshots>
164                             <overWriteIfNewer>true</overWriteIfNewer>
165                             <excludeTransitive>true</excludeTransitive>
166                             <!-- Do not include version in JAR filename, as external scripts call this utility,
167                                  and they understandly do not want to have to adjust for every ODL release;
168                                  see e.g. https://github.com/dfarrell07/puppet-opendaylight/pull/140 -->
169                             <stripVersion>true</stripVersion>
170                         </configuration>
171                     </execution>
172                 </executions>
173             </plugin>
174
175             <!-- ODLPARENT-142: Heavy-handed workaround to remove mysql dependencies from system -->
176             <plugin>
177                 <groupId>org.apache.maven.plugins</groupId>
178                 <artifactId>maven-antrun-plugin</artifactId>
179                 <executions>
180                     <execution>
181                         <phase>prepare-package</phase>
182                         <goals>
183                             <goal>run</goal>
184                         </goals>
185                         <configuration>
186                             <tasks>
187                                 <delete includeemptydirs="true">
188                                     <fileset dir="${project.build.directory}/assembly/system/mysql"/>
189                                 </delete>
190                             </tasks>
191                         </configuration>
192                     </execution>
193                 </executions>
194             </plugin>
195         </plugins>
196     </build>
197
198 </project>