2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
4 Copyright (c) 2016 Cisco Systems, Inc. and others. All rights reserved.
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
10 <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">
11 <modelVersion>4.0.0</modelVersion>
13 <groupId>org.opendaylight.integration</groupId>
14 <artifactId>root</artifactId>
15 <version>0.6.0-SNAPSHOT</version>
16 <relativePath>../</relativePath>
18 <artifactId>features-distribution</artifactId>
19 <packaging>jar</packaging>
20 <name>distribution:${project.artifactId}</name>
21 <description>Sub-project building features internal to distribution.</description>
22 <url>https://wiki.opendaylight.org/view/Integration/Distribution</url>
25 <name>Eclipse Public License v1.0</name>
26 <url>http://www.eclipse.org/legal/epl-v10.html</url>
29 <!-- FIXME: Add developers section -->
31 <connection>scm:git:https://git.opendaylight.org/gerrit/integration/distribution.git</connection>
32 <developerConnection>scm:git:ssh://git.opendaylight.org:29418/integration/distribution.git</developerConnection>
33 <url>https://git.opendaylight.org/gerrit/gitweb?p=integration/distribution.git;a=tree;f=features-distribution;hb=HEAD</url>
37 <features.file>features.xml</features.file>
40 <!-- version module -->
42 <groupId>${project.groupId}</groupId>
43 <artifactId>version</artifactId>
44 <version>${project.version}</version>
47 <groupId>${project.groupId}</groupId>
48 <artifactId>version</artifactId>
49 <version>${project.version}</version>
51 <classifier>config</classifier>
53 <!-- dependencies on feature repos -->
55 <groupId>org.opendaylight.controller</groupId>
56 <artifactId>features-config-persister</artifactId>
57 <version>${feature.controller.config.version}</version>
58 <classifier>features</classifier>
61 <!-- test to validate features.xml -->
63 <groupId>org.opendaylight.odlparent</groupId>
64 <artifactId>features-test</artifactId>
65 <version>${feature.odlparent.version}</version>
68 <groupId>junit</groupId>
69 <artifactId>junit-dep</artifactId>
72 <!-- dependency for opendaylight-karaf-empty for use by testing -->
74 <groupId>org.opendaylight.controller</groupId>
75 <artifactId>opendaylight-karaf-empty</artifactId>
76 <version>${feature.odlparent.version}</version>
83 <directory>src/main/resources</directory>
84 <filtering>true</filtering>
89 <groupId>org.apache.karaf.tooling</groupId>
90 <artifactId>karaf-maven-plugin</artifactId>
91 <extensions>true</extensions>
94 <id>features-create-kar</id>
96 <goal>features-create-kar</goal>
99 <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
103 <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
106 <groupId>org.apache.maven.plugins</groupId>
107 <artifactId>maven-resources-plugin</artifactId>
111 <phase>generate-resources</phase>
113 <goal>resources</goal>
119 <groupId>org.codehaus.mojo</groupId>
120 <artifactId>build-helper-maven-plugin</artifactId>
123 <id>attach-artifacts</id>
124 <phase>package</phase>
126 <goal>attach-artifact</goal>
131 <file>${project.build.directory}/classes/${features.file}</file>
133 <classifier>features</classifier>
141 <groupId>org.apache.maven.plugins</groupId>
142 <artifactId>maven-surefire-plugin</artifactId>
144 <systemPropertyVariables>
145 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
146 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
147 <karaf.distro.version>${feature.odlparent.version}</karaf.distro.version>
148 </systemPropertyVariables>
150 <dependency>org.opendaylight.odlparent:features-test</dependency>
151 </dependenciesToScan>