Freeze upstream versions
[netvirt.git] / karaf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others.  All rights reserved.
4
5 This program and the accompanying materials are made available under the
6 terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 and is available at http://www.eclipse.org/legal/epl-v10.html INTERNAL
8 -->
9 <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">
10
11     <parent>
12         <groupId>org.opendaylight.odlparent</groupId>
13         <artifactId>karaf4-parent</artifactId>
14         <version>8.1.1</version>
15         <relativePath/>
16     </parent>
17
18     <groupId>org.opendaylight.netvirt</groupId>
19     <artifactId>karaf</artifactId>
20     <version>0.12.0-SNAPSHOT</version>
21     <name>ODL :: netvirt :: ${project.artifactId}</name>
22     <modelVersion>4.0.0</modelVersion>
23
24     <properties>
25         <!-- <karaf.localFeature>odl-netvirt-openstack</karaf.localFeature> -->
26         <maven.deploy.skip>true</maven.deploy.skip>
27         <maven.install.skip>true</maven.install.skip>
28     </properties>
29
30     <dependencies>
31         <dependency>
32             <!-- scope is compile so all features (there is only one) are installed
33             into startup.properties and the feature repo itself is not installed -->
34             <groupId>org.apache.karaf.features</groupId>
35             <artifactId>framework</artifactId>
36             <version>${karaf.version}</version>
37             <type>kar</type>
38             <scope>compile</scope>
39         </dependency>
40
41         <dependency>
42             <groupId>${project.groupId}</groupId>
43             <artifactId>netvirt-features</artifactId>
44             <version>${project.version}</version>
45             <classifier>features</classifier>
46             <type>xml</type>
47             <scope>runtime</scope>
48         </dependency>
49
50         <dependency>
51             <!-- This is here just so that we have the respective bundles for this development debug feature
52                  in netvirt's Karaf distribution, and it is easy to do "feature:install odl-mdsal-trace" on
53                  test environments to find memory leaks due to non-closed transactions.  This feature is NOT
54                  intended for production, and not installed as a boot feature by default.  (If we do not do
55                  this, then it's quite a pain/complicated to install this feature onto a non-dev environment
56                  on a test server where an ODL binary was installed e.g. from an RPM package, because as is
57                  we currently cannot easily, by a simple CLI command, add additional features from new remote
58                  repos.)
59              -->
60             <groupId>org.opendaylight.mdsal</groupId>
61             <artifactId>odl-mdsal-trace</artifactId>
62             <version>7.0.6</version>
63             <classifier>features</classifier>
64             <type>xml</type>
65             <scope>runtime</scope>
66         </dependency>
67
68         <dependency>
69             <!-- This ensures we have odl-jolokia in the distribution -->
70             <groupId>org.opendaylight.controller</groupId>
71             <artifactId>odl-jolokia</artifactId>
72             <version>3.0.7</version>
73             <type>xml</type>
74             <classifier>features</classifier>
75             <scope>runtime</scope>
76         </dependency>
77
78         <dependency>
79             <!-- This ensures aaa-cli is available for the copy below -->
80             <groupId>org.opendaylight.aaa</groupId>
81             <artifactId>aaa-cli-jar</artifactId>
82             <version>0.13.2</version>
83             <!-- Use scope test (and not more!) just so we have the dependency for the maven-dependency-plugin below -->
84             <scope>test</scope>
85         </dependency>
86     </dependencies>
87
88     <build>
89         <plugins>
90             <plugin>
91                 <groupId>org.apache.maven.plugins</groupId>
92                 <artifactId>maven-dependency-plugin</artifactId>
93                 <executions>
94                     <execution>
95                         <id>copy-aaa-cli-jar</id>
96                         <phase>prepare-package</phase>
97                         <goals>
98                             <goal>copy</goal>
99                         </goals>
100                         <configuration>
101                             <artifactItems>
102                                 <artifactItem>
103                                     <groupId>org.opendaylight.aaa</groupId>
104                                     <artifactId>aaa-cli-jar</artifactId>
105                                     <version>0.13.2</version>
106                                 </artifactItem>
107                             </artifactItems>
108                             <outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
109                             <includeArtifactIds>aaa-cli-jar</includeArtifactIds>
110                             <overWriteReleases>true</overWriteReleases>
111                             <overWriteSnapshots>true</overWriteSnapshots>
112                             <overWriteIfNewer>true</overWriteIfNewer>
113                             <excludeTransitive>true</excludeTransitive>
114                             <!-- Do not include version in JAR filename, as external scripts call this utility,
115                                  and they understandly do not want to have to adjust for every ODL release;
116                                  see e.g. https://github.com/dfarrell07/puppet-opendaylight/pull/140 -->
117                             <stripVersion>true</stripVersion>
118                         </configuration>
119                     </execution>
120                 </executions>
121             </plugin>
122         </plugins>
123     </build>
124 </project>