1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3 <modelVersion>4.0.0</modelVersion>
5 <artifactId>appc-metric</artifactId>
6 <groupId>org.openecomp.appc</groupId>
7 <version>1.1.0-SNAPSHOT</version>
9 <name>appc-metric-features</name>
10 <artifactId>appc-metric-features</artifactId>
12 <packaging>jar</packaging>
16 <groupId>org.openecomp.appc</groupId>
17 <artifactId>appc-metric-bundle</artifactId>
18 <version>${project.version}</version>
22 <groupId>org.opendaylight.controller</groupId>
23 <artifactId>features-mdsal</artifactId>
24 <classifier>features</classifier>
27 <scope>runtime</scope>
32 <!-- dependency for opendaylight-karaf-empty for use by testing -->
34 <!-- <groupId>org.opendaylight.controller</groupId> -->
35 <!-- <artifactId>opendaylight-karaf-empty</artifactId> -->
36 <!-- <type>zip</type> -->
37 <!-- </dependency> -->
43 <groupId>org.opendaylight.yangtools</groupId>
44 <artifactId>features-yangtools</artifactId>
45 <classifier>features</classifier>
47 <scope>runtime</scope>
54 <filtering>true</filtering>
55 <directory>src/main/resources</directory>
60 <groupId>org.apache.maven.plugins</groupId>
61 <artifactId>maven-resources-plugin</artifactId>
66 <goal>resources</goal>
68 <phase>generate-resources</phase>
73 <!-- launches the feature test, which validates that your karaf feature
74 can be installed inside of a karaf container. It doesn't validate that your
75 functionality works correctly, just that you have all of the dependent bundles
76 defined correctly. -->
77 <!-- Skipping ODL feature test -->
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-surefire-plugin</artifactId>
80 <version>2.16</version>
82 <systemPropertyVariables>
83 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
84 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
85 <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>
86 </systemPropertyVariables>
88 <dependency>org.opendaylight.yangtools:features-test</dependency>
90 <classpathDependencyExcludes>
91 <!-- The dependencies which bring in AbstractDataBrokerTest class
92 brings in a second PaxExam container which results in the feature tests failing
93 with a message similar to: "ERROR o.ops4j.pax.exam.spi.PaxExamRuntime - Ambiguous
94 TestContainer ..." This excludes the container we don't want to use. -->
95 <classpathDependencyExcludes>org.ops4j.pax.exam:pax-exam-container-native</classpathDependencyExcludes>
96 </classpathDependencyExcludes>
97 <skipTests>true</skipTests>
101 <groupId>org.codehaus.mojo</groupId>
102 <artifactId>build-helper-maven-plugin</artifactId>
105 <id>attach-artifacts</id>
107 <goal>attach-artifact</goal>
109 <phase>package</phase>
113 <file>${project.build.directory}/classes/${features.file}</file>
115 <classifier>features</classifier>