Bump versions by x.(y+1).z for next dev cycle
[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>3.1.3</version>
15         <relativePath/>
16     </parent>
17
18     <groupId>org.opendaylight.netvirt</groupId>
19     <artifactId>karaf</artifactId>
20     <version>0.8.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     </properties>
27
28     <dependencies>
29         <dependency>
30             <!-- scope is compile so all features (there is only one) are installed
31             into startup.properties and the feature repo itself is not installed -->
32             <groupId>org.apache.karaf.features</groupId>
33             <artifactId>framework</artifactId>
34             <version>${karaf.version}</version>
35             <type>kar</type>
36             <scope>compile</scope>
37         </dependency>
38
39         <dependency>
40             <groupId>${project.groupId}</groupId>
41             <artifactId>netvirt-features</artifactId>
42             <version>${project.version}</version>
43             <classifier>features</classifier>
44             <type>xml</type>
45             <scope>runtime</scope>
46         </dependency>
47
48         <dependency>
49             <!-- This is here just so that we have the respective bundles for this development debug feature
50                  in netvirt's Karaf distribution, and it is easy to do "feature:install odl-mdsal-trace" on
51                  test environments to find memory leaks due to non-closed transactions.  This feature is NOT
52                  intended for production, and not installed as a boot feature by default.  (If we do not do
53                  this, then it's quite a pain/complicated to install this feature onto a non-dev environment
54                  on a test server where an ODL binary was installed e.g. from an RPM package, because as is
55                  we currently cannot easily, by a simple CLI command, add additional features from new remote
56                  repos.)
57              -->
58             <groupId>org.opendaylight.controller</groupId>
59             <artifactId>features-mdsal-trace</artifactId>
60             <version>1.9.0-SNAPSHOT</version>
61             <classifier>features</classifier>
62             <type>xml</type>
63             <scope>runtime</scope>
64         </dependency>
65
66         <dependency>
67             <!-- This ensures we have odl-jolokia in the distribution -->
68             <groupId>org.opendaylight.controller</groupId>
69             <artifactId>features-extras</artifactId>
70             <version>1.12.0-SNAPSHOT</version>
71             <type>xml</type>
72             <classifier>features</classifier>
73             <scope>runtime</scope>
74         </dependency>
75
76         <dependency>
77             <!-- This ensures aaa-cli is available for the copy below -->
78             <groupId>org.opendaylight.aaa</groupId>
79             <artifactId>aaa-cli-jar</artifactId>
80             <version>0.9.0-SNAPSHOT</version>
81             <!-- Use scope test (and not more!) just so we have the dependency for the maven-dependency-plugin below -->
82             <scope>test</scope>
83         </dependency>
84     </dependencies>
85
86     <build>
87         <plugins>
88             <plugin>
89                 <groupId>org.apache.maven.plugins</groupId>
90                 <artifactId>maven-dependency-plugin</artifactId>
91                 <executions>
92                     <execution>
93                         <id>copy-aaa-cli-jar</id>
94                         <phase>prepare-package</phase>
95                         <goals>
96                             <goal>copy</goal>
97                         </goals>
98                         <configuration>
99                             <artifactItems>
100                                 <artifactItem>
101                                     <groupId>org.opendaylight.aaa</groupId>
102                                     <artifactId>aaa-cli-jar</artifactId>
103                                     <version>0.9.0-SNAPSHOT</version>
104                                 </artifactItem>
105                             </artifactItems>
106                             <outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
107                             <includeArtifactIds>aaa-cli-jar</includeArtifactIds>
108                             <overWriteReleases>true</overWriteReleases>
109                             <overWriteSnapshots>true</overWriteSnapshots>
110                             <overWriteIfNewer>true</overWriteIfNewer>
111                             <excludeTransitive>true</excludeTransitive>
112                             <!-- Do not include version in JAR filename, as external scripts call this utility,
113                                  and they understandly do not want to have to adjust for every ODL release;
114                                  see e.g. https://github.com/dfarrell07/puppet-opendaylight/pull/140 -->
115                             <stripVersion>true</stripVersion>
116                         </configuration>
117                     </execution>
118                 </executions>
119             </plugin>
120             <!-- Temporarily deploy the karaf artifact -->
121             <plugin>
122                 <groupId>org.apache.maven.plugins</groupId>
123                 <artifactId>maven-deploy-plugin</artifactId>
124                 <configuration>
125                     <skip>false</skip>
126                 </configuration>
127             </plugin>
128             <!-- NETVIRT-1126: Heavy-handed workaround to remove mysql dependencies from system -->
129             <plugin>
130                 <groupId>org.apache.maven.plugins</groupId>
131                 <artifactId>maven-antrun-plugin</artifactId>
132                 <executions>
133                     <execution>
134                         <phase>prepare-package</phase>
135                         <goals>
136                             <goal>run</goal>
137                         </goals>
138                         <configuration>
139                             <tasks>
140                                 <delete includeemptydirs="true">
141                                     <fileset dir="${project.build.directory}/assembly/system/mysql"/>
142                                 </delete>
143                             </tasks>
144                         </configuration>
145                     </execution>
146                 </executions>
147             </plugin>
148         </plugins>
149     </build>
150 </project>