Update license header in misc appc xml files
[appc.git] / appc-oam / appc-oam-features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ONAP : APPC
5   ================================================================================
6   Copyright (C) 2017-2018 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Copyright (C) 2017 Amdocs
9   =============================================================================
10   Licensed under the Apache License, Version 2.0 (the "License");
11   you may not use this file except in compliance with the License.
12   You may obtain a copy of the License at
13
14        http://www.apache.org/licenses/LICENSE-2.0
15
16   Unless required by applicable law or agreed to in writing, software
17   distributed under the License is distributed on an "AS IS" BASIS,
18   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19   See the License for the specific language governing permissions and
20   limitations under the License.
21
22   ============LICENSE_END=========================================================
23   -->
24 <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">
25   <modelVersion>4.0.0</modelVersion>
26   <parent>
27     <artifactId>appc-oam</artifactId>
28     <groupId>org.onap.appc</groupId>
29     <version>1.4.0-SNAPSHOT</version>
30   </parent>
31
32    <name>APPC OAM - Features</name>
33     <artifactId>appc-oam-features</artifactId>
34     <packaging>jar</packaging>
35
36   <dependencies>
37     <dependency>
38       <groupId>org.onap.appc</groupId>
39       <artifactId>appc-oam-model</artifactId>
40       <version>${project.version}</version>
41     </dependency>
42
43     <dependency>
44       <groupId>org.onap.appc</groupId>
45       <artifactId>appc-oam-bundle</artifactId>
46       <classifier>config</classifier>
47       <type>xml</type>
48       <version>${project.version}</version>
49     </dependency>
50
51     <dependency>
52       <groupId>org.onap.appc</groupId>
53       <artifactId>appc-oam-bundle</artifactId>
54       <version>${project.version}</version>
55     </dependency>
56
57     <dependency>
58       <groupId>org.opendaylight.mdsal</groupId>
59       <artifactId>features-mdsal</artifactId>
60       <classifier>features</classifier>
61       <type>xml</type>
62
63       <scope>runtime</scope>
64     </dependency>
65
66     <dependency>
67       <groupId>org.opendaylight.yangtools</groupId>
68       <artifactId>features-yangtools</artifactId>
69       <classifier>features</classifier>
70       <type>xml</type>
71       <scope>runtime</scope>
72     </dependency>
73   </dependencies>
74
75   <build>
76     <resources>
77       <resource>
78         <filtering>true</filtering>
79         <directory>src/main/resources</directory>
80       </resource>
81     </resources>
82     <plugins>
83       <plugin>
84         <groupId>org.apache.maven.plugins</groupId>
85         <artifactId>maven-resources-plugin</artifactId>
86         <executions>
87           <execution>
88             <id>filter</id>
89             <goals>
90               <goal>resources</goal>
91             </goals>
92             <phase>generate-resources</phase>
93           </execution>
94         </executions>
95       </plugin>
96       <plugin>
97         <!-- launches the feature test, which validates that your karaf feature
98           can be installed inside of a karaf container. It doesn't validate that your
99           functionality works correctly, just that you have all of the dependent bundles
100           defined correctly. -->
101         <!-- Skipping ODL feature test -->
102         <groupId>org.apache.maven.plugins</groupId>
103         <artifactId>maven-surefire-plugin</artifactId>
104         <configuration>
105           <systemPropertyVariables>
106             <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
107             <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
108             <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>
109           </systemPropertyVariables>
110           <dependenciesToScan>
111             <dependency>org.opendaylight.yangtools:features-test</dependency>
112           </dependenciesToScan>
113           <classpathDependencyExcludes>
114             <!-- The dependencies which bring in AbstractDataBrokerTest class
115               brings in a second PaxExam container which results in the feature tests failing
116               with a message similar to: "ERROR o.ops4j.pax.exam.spi.PaxExamRuntime - Ambiguous
117               TestContainer ..." This excludes the container we don't want to use. -->
118             <classpathDependencyExcludes>org.ops4j.pax.exam:pax-exam-container-native</classpathDependencyExcludes>
119           </classpathDependencyExcludes>
120           <skipTests>true</skipTests>
121         </configuration>
122       </plugin>
123       <plugin>
124         <groupId>org.codehaus.mojo</groupId>
125         <artifactId>build-helper-maven-plugin</artifactId>
126         <executions>
127           <execution>
128             <id>attach-artifacts</id>
129             <goals>
130               <goal>attach-artifact</goal>
131             </goals>
132             <phase>package</phase>
133             <configuration>
134               <artifacts>
135                 <artifact>
136                   <file>${project.build.directory}/classes/${features.file}</file>
137                   <type>xml</type>
138                   <classifier>features</classifier>
139                 </artifact>
140               </artifacts>
141             </configuration>
142           </execution>
143         </executions>
144       </plugin>
145
146     </plugins>
147   </build>
148 </project>