1 <?xml version="1.0" encoding="UTF-8"?>
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"
11 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12 <modelVersion>4.0.0</modelVersion>
14 <groupId>org.opendaylight.integration</groupId>
15 <artifactId>root</artifactId>
16 <version>0.5.0-SNAPSHOT</version>
17 <relativePath>../</relativePath>
19 <artifactId>features-distribution</artifactId>
20 <packaging>jar</packaging>
22 <features.file>features.xml</features.file>
25 <!-- version module -->
27 <groupId>${project.groupId}</groupId>
28 <artifactId>version</artifactId>
29 <version>${project.version}</version>
32 <groupId>${project.groupId}</groupId>
33 <artifactId>version</artifactId>
34 <version>${project.version}</version>
36 <classifier>config</classifier>
38 <!-- dependencies on feature repos -->
40 <groupId>org.opendaylight.controller</groupId>
41 <artifactId>features-config-persister</artifactId>
42 <version>${feature.controller.config.version}</version>
43 <classifier>features</classifier>
46 <!-- test to validate features.xml -->
48 <groupId>org.opendaylight.odlparent</groupId>
49 <artifactId>features-test</artifactId>
50 <version>${feature.odlparent.version}</version>
53 <groupId>junit</groupId>
54 <artifactId>junit-dep</artifactId>
57 <!-- dependency for opendaylight-karaf-empty for use by testing -->
59 <groupId>org.opendaylight.controller</groupId>
60 <artifactId>opendaylight-karaf-empty</artifactId>
61 <version>${feature.odlparent.version}</version>
68 <directory>src/main/resources</directory>
69 <filtering>true</filtering>
74 <groupId>org.apache.karaf.tooling</groupId>
75 <artifactId>karaf-maven-plugin</artifactId>
76 <extensions>true</extensions>
79 <id>features-create-kar</id>
81 <goal>features-create-kar</goal>
84 <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
88 <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
91 <groupId>org.apache.maven.plugins</groupId>
92 <artifactId>maven-resources-plugin</artifactId>
96 <phase>generate-resources</phase>
98 <goal>resources</goal>
104 <groupId>org.codehaus.mojo</groupId>
105 <artifactId>build-helper-maven-plugin</artifactId>
108 <id>attach-artifacts</id>
109 <phase>package</phase>
111 <goal>attach-artifact</goal>
116 <file>${project.build.directory}/classes/${features.file}</file>
118 <classifier>features</classifier>
126 <groupId>org.apache.maven.plugins</groupId>
127 <artifactId>maven-surefire-plugin</artifactId>
129 <systemPropertyVariables>
130 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
131 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
132 <karaf.distro.version>${feature.odlparent.version}</karaf.distro.version>
133 </systemPropertyVariables>
135 <dependency>org.opendaylight.odlparent:features-test</dependency>
136 </dependenciesToScan>