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-provider</artifactId>
6 <groupId>org.openecomp.appc</groupId>
7 <version>1.1.0-SNAPSHOT</version>
9 <name>appc-provider-features</name>
10 <artifactId>appc-provider-features</artifactId>
12 <packaging>jar</packaging>
16 <groupId>org.openecomp.appc</groupId>
17 <artifactId>appc-provider-model</artifactId>
18 <version>${project.version}</version>
22 <groupId>org.openecomp.appc</groupId>
23 <artifactId>appc-provider-bundle</artifactId>
24 <classifier>config</classifier>
26 <version>${project.version}</version>
30 <groupId>org.openecomp.appc</groupId>
31 <artifactId>appc-provider-bundle</artifactId>
32 <version>${project.version}</version>
36 <groupId>org.opendaylight.mdsal</groupId>
37 <artifactId>features-mdsal</artifactId>
38 <classifier>features</classifier>
41 <scope>runtime</scope>
46 <!-- dependency for opendaylight-karaf-empty for use by testing -->
48 <!-- <groupId>org.opendaylight.controller</groupId> -->
49 <!-- <artifactId>opendaylight-karaf-empty</artifactId> -->
50 <!-- <type>zip</type> -->
51 <!-- </dependency> -->
55 <!-- Required for launching the feature tests -->
56 <!-- <groupId>org.opendaylight.yangtools</groupId> -->
57 <!-- <artifactId>features-test</artifactId> -->
58 <!-- <scope>test</scope> -->
59 <!-- </dependency> -->
62 <groupId>org.opendaylight.yangtools</groupId>
63 <artifactId>features-yangtools</artifactId>
64 <classifier>features</classifier>
66 <scope>runtime</scope>
73 <filtering>true</filtering>
74 <directory>src/main/resources</directory>
79 <groupId>org.apache.maven.plugins</groupId>
80 <artifactId>maven-resources-plugin</artifactId>
85 <goal>resources</goal>
87 <phase>generate-resources</phase>
92 <!-- launches the feature test, which validates that your karaf feature
93 can be installed inside of a karaf container. It doesn't validate that your
94 functionality works correctly, just that you have all of the dependent bundles
95 defined correctly. -->
96 <!-- Skipping ODL feature test -->
97 <groupId>org.apache.maven.plugins</groupId>
98 <artifactId>maven-surefire-plugin</artifactId>
100 <systemPropertyVariables>
101 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
102 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
103 <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>
104 </systemPropertyVariables>
106 <dependency>org.opendaylight.yangtools:features-test</dependency>
107 </dependenciesToScan>
108 <classpathDependencyExcludes>
109 <!-- The dependencies which bring in AbstractDataBrokerTest class
110 brings in a second PaxExam container which results in the feature tests failing
111 with a message similar to: "ERROR o.ops4j.pax.exam.spi.PaxExamRuntime - Ambiguous
112 TestContainer ..." This excludes the container we don't want to use. -->
113 <classpathDependencyExcludes>org.ops4j.pax.exam:pax-exam-container-native</classpathDependencyExcludes>
114 </classpathDependencyExcludes>
115 <skipTests>true</skipTests>
119 <groupId>org.codehaus.mojo</groupId>
120 <artifactId>build-helper-maven-plugin</artifactId>
123 <id>attach-artifacts</id>
125 <goal>attach-artifact</goal>
127 <phase>package</phase>
131 <file>${project.build.directory}/classes/${features.file}</file>
133 <classifier>features</classifier>