Increment version for new branch
[appc.git] / appc-dg-util / appc-dg-util-features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
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
12   
13        http://www.apache.org/licenses/LICENSE-2.0
14   
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.
22   -->
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>
25   <parent>
26     <artifactId>appc-dg-util</artifactId>
27     <groupId>org.onap.appc</groupId>
28     <version>1.4.0-SNAPSHOT</version>
29   </parent>
30   <name>appc-dg-util-features</name>
31   <artifactId>appc-dg-util-features</artifactId>
32
33   <packaging>jar</packaging>
34
35   <dependencies>
36      <dependency>
37       <groupId>org.onap.appc</groupId>
38       <artifactId>appc-dg-util-bundle</artifactId>
39       <version>${project.version}</version>
40     </dependency>
41
42     <dependency>
43       <groupId>org.opendaylight.mdsal</groupId>
44       <artifactId>features-mdsal</artifactId>
45       <classifier>features</classifier>
46       <type>xml</type>
47
48       <scope>runtime</scope>
49     </dependency>
50
51
52
53     <!-- dependency for opendaylight-karaf-empty for use by testing -->
54 <!--     <dependency> -->
55 <!--       <groupId>org.opendaylight.controller</groupId> -->
56 <!--       <artifactId>opendaylight-karaf-empty</artifactId> -->
57 <!--       <type>zip</type> -->
58 <!--     </dependency> -->
59
60
61
62
63     <dependency>
64       <groupId>org.opendaylight.yangtools</groupId>
65       <artifactId>features-yangtools</artifactId>
66       <classifier>features</classifier>
67       <type>xml</type>
68       <scope>runtime</scope>
69     </dependency>
70   </dependencies>
71
72   <build>
73     <resources>
74       <resource>
75         <filtering>true</filtering>
76         <directory>src/main/resources</directory>
77       </resource>
78     </resources>
79     <plugins>
80       <plugin>
81         <groupId>org.apache.maven.plugins</groupId>
82         <artifactId>maven-resources-plugin</artifactId>
83         <executions>
84           <execution>
85             <id>filter</id>
86             <goals>
87               <goal>resources</goal>
88             </goals>
89             <phase>generate-resources</phase>
90           </execution>
91         </executions>
92       </plugin>
93       <plugin>
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>
101         <configuration>
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>
107           <dependenciesToScan>
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>
118         </configuration>
119       </plugin>
120       <plugin>
121         <groupId>org.codehaus.mojo</groupId>
122         <artifactId>build-helper-maven-plugin</artifactId>
123         <executions>
124           <execution>
125             <id>attach-artifacts</id>
126             <goals>
127               <goal>attach-artifact</goal>
128             </goals>
129             <phase>package</phase>
130             <configuration>
131               <artifacts>
132                 <artifact>
133                   <file>${project.build.directory}/classes/${features.file}</file>
134                   <type>xml</type>
135                   <classifier>features</classifier>
136                 </artifact>
137               </artifacts>
138             </configuration>
139           </execution>
140         </executions>
141       </plugin>
142
143     </plugins>
144   </build>
145 </project>