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-dg-util</artifactId>
6 <groupId>org.openecomp.appc</groupId>
7 <version>1.1.0-SNAPSHOT</version>
9 <name>appc-dg-util-features</name>
10 <artifactId>appc-dg-util-features</artifactId>
12 <packaging>jar</packaging>
16 <groupId>org.openecomp.appc</groupId>
17 <artifactId>appc-dg-util-bundle</artifactId>
18 <version>${project.version}</version>
22 <groupId>org.opendaylight.mdsal</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>
81 <systemPropertyVariables>
82 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
83 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
84 <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>
85 </systemPropertyVariables>
87 <dependency>org.opendaylight.yangtools:features-test</dependency>
89 <classpathDependencyExcludes>
90 <!-- The dependencies which bring in AbstractDataBrokerTest class
91 brings in a second PaxExam container which results in the feature tests failing
92 with a message similar to: "ERROR o.ops4j.pax.exam.spi.PaxExamRuntime - Ambiguous
93 TestContainer ..." This excludes the container we don't want to use. -->
94 <classpathDependencyExcludes>org.ops4j.pax.exam:pax-exam-container-native</classpathDependencyExcludes>
95 </classpathDependencyExcludes>
96 <skipTests>true</skipTests>
100 <groupId>org.codehaus.mojo</groupId>
101 <artifactId>build-helper-maven-plugin</artifactId>
104 <id>attach-artifacts</id>
106 <goal>attach-artifact</goal>
108 <phase>package</phase>
112 <file>${project.build.directory}/classes/${features.file}</file>
114 <classifier>features</classifier>