1 <?xml version="1.0" encoding="UTF-8"?>
3 ============LICENSE_START=======================================================
5 ================================================================================
6 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7 Copyright (C) 2017 Amdocs
8 ================================================================================
9 Licensed under the Apache License, Version 2.0 (the "License");
10 you may not use this file except in compliance with the License.
11 You may obtain a copy of the License at
13 http://www.apache.org/licenses/LICENSE-2.0
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 ============LICENSE_END=========================================================
21 ECOMP is a trademark and service mark of AT&T Intellectual Property.
23 <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">
24 <modelVersion>4.0.0</modelVersion>
26 <artifactId>appc-dg-util</artifactId>
27 <groupId>org.onap.appc</groupId>
28 <version>1.3.0-SNAPSHOT</version>
30 <name>appc-dg-util-features</name>
31 <artifactId>appc-dg-util-features</artifactId>
33 <packaging>jar</packaging>
37 <groupId>org.onap.appc</groupId>
38 <artifactId>appc-dg-util-bundle</artifactId>
39 <version>${project.version}</version>
43 <groupId>org.opendaylight.mdsal</groupId>
44 <artifactId>features-mdsal</artifactId>
45 <classifier>features</classifier>
48 <scope>runtime</scope>
53 <!-- dependency for opendaylight-karaf-empty for use by testing -->
55 <!-- <groupId>org.opendaylight.controller</groupId> -->
56 <!-- <artifactId>opendaylight-karaf-empty</artifactId> -->
57 <!-- <type>zip</type> -->
58 <!-- </dependency> -->
64 <groupId>org.opendaylight.yangtools</groupId>
65 <artifactId>features-yangtools</artifactId>
66 <classifier>features</classifier>
68 <scope>runtime</scope>
75 <filtering>true</filtering>
76 <directory>src/main/resources</directory>
81 <groupId>org.apache.maven.plugins</groupId>
82 <artifactId>maven-resources-plugin</artifactId>
87 <goal>resources</goal>
89 <phase>generate-resources</phase>
94 <!-- launches the feature test, which validates that your karaf feature
95 can be installed inside of a karaf container. It doesn't validate that your
96 functionality works correctly, just that you have all of the dependent bundles
97 defined correctly. -->
98 <!-- Skipping ODL feature test -->
99 <groupId>org.apache.maven.plugins</groupId>
100 <artifactId>maven-surefire-plugin</artifactId>
102 <systemPropertyVariables>
103 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
104 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
105 <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>
106 </systemPropertyVariables>
108 <dependency>org.opendaylight.yangtools:features-test</dependency>
109 </dependenciesToScan>
110 <classpathDependencyExcludes>
111 <!-- The dependencies which bring in AbstractDataBrokerTest class
112 brings in a second PaxExam container which results in the feature tests failing
113 with a message similar to: "ERROR o.ops4j.pax.exam.spi.PaxExamRuntime - Ambiguous
114 TestContainer ..." This excludes the container we don't want to use. -->
115 <classpathDependencyExcludes>org.ops4j.pax.exam:pax-exam-container-native</classpathDependencyExcludes>
116 </classpathDependencyExcludes>
117 <skipTests>true</skipTests>
121 <groupId>org.codehaus.mojo</groupId>
122 <artifactId>build-helper-maven-plugin</artifactId>
125 <id>attach-artifacts</id>
127 <goal>attach-artifact</goal>
129 <phase>package</phase>
133 <file>${project.build.directory}/classes/${features.file}</file>
135 <classifier>features</classifier>