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