1 <?xml version="1.0" encoding="UTF-8"?>
3 Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others. All rights reserved.
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
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">
12 <groupId>org.opendaylight.odlparent</groupId>
13 <artifactId>karaf4-parent</artifactId>
14 <version>3.1.0</version>
18 <groupId>org.opendaylight.netvirt</groupId>
19 <artifactId>karaf</artifactId>
20 <version>0.7.0-SNAPSHOT</version>
21 <name>ODL :: netvirt :: ${project.artifactId}</name>
22 <modelVersion>4.0.0</modelVersion>
25 <!-- <karaf.localFeature>odl-netvirt-openstack</karaf.localFeature> -->
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>
36 <scope>compile</scope>
40 <groupId>${project.groupId}</groupId>
41 <artifactId>netvirt-features</artifactId>
42 <version>${project.version}</version>
43 <classifier>features</classifier>
45 <scope>runtime</scope>
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
58 <groupId>org.opendaylight.controller</groupId>
59 <artifactId>features-mdsal-trace</artifactId>
60 <version>1.8.0-SNAPSHOT</version>
61 <classifier>features</classifier>
63 <scope>runtime</scope>
67 <!-- This ensures we have odl-jolokia in the distribution -->
68 <groupId>org.opendaylight.controller</groupId>
69 <artifactId>features-extras</artifactId>
70 <version>1.11.0-SNAPSHOT</version>
72 <classifier>features</classifier>
73 <scope>runtime</scope>
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.8.0-SNAPSHOT</version>
81 <!-- Use scope test (and not more!) just so we have the dependency for the maven-dependency-plugin below -->
89 <groupId>org.apache.maven.plugins</groupId>
90 <artifactId>maven-dependency-plugin</artifactId>
93 <id>copy-aaa-cli-jar</id>
94 <phase>prepare-package</phase>
101 <groupId>org.opendaylight.aaa</groupId>
102 <artifactId>aaa-cli-jar</artifactId>
103 <version>0.8.0-SNAPSHOT</version>
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>
120 <!-- Temporarily deploy the karaf artifact -->
122 <groupId>org.apache.maven.plugins</groupId>
123 <artifactId>maven-deploy-plugin</artifactId>
128 <!-- NETVIRT-1126: Heavy-handed workaround to remove mysql dependencies from system -->
130 <groupId>org.apache.maven.plugins</groupId>
131 <artifactId>maven-antrun-plugin</artifactId>
134 <phase>prepare-package</phase>
140 <delete includeemptydirs="true">
141 <fileset dir="${project.build.directory}/assembly/system/mysql"/>