[feature/APPC-6]
[appc.git] / appc-adapters / appc-ansible-adapter / appc-ansible-adapter-features / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   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-ansible-adapter</artifactId>
27     <groupId>org.openecomp.appc</groupId>
28     <version>1.1.0-SNAPSHOT</version>
29   </parent>
30   <artifactId>appc-ansible-adapter-features</artifactId>
31   <name>Ansible Adaptor - Features</name>
32
33   <packaging>jar</packaging>
34
35   <dependencies>
36     <dependency>
37       <groupId>org.openecomp.appc</groupId>
38       <artifactId>appc-ansible-adapter-bundle</artifactId>
39       <version>${project.version}</version>
40     </dependency>
41
42     <dependency>
43       <groupId>commons-lang</groupId>
44       <artifactId>commons-lang</artifactId>
45       <scope>compile</scope>
46     </dependency>
47
48     <dependency>
49       <groupId>org.opendaylight.mdsal</groupId>
50       <artifactId>features-mdsal</artifactId>
51       <classifier>features</classifier>
52       <type>xml</type>
53       <scope>runtime</scope>
54     </dependency>
55
56     <!-- dependency for opendaylight-karaf-empty for use by testing -->
57     <dependency>
58       <groupId>org.opendaylight.controller</groupId>
59       <artifactId>opendaylight-karaf-empty</artifactId>
60       <type>zip</type>
61     </dependency>
62
63 <!--     <dependency> -->
64 <!--       Required for launching the feature tests -->
65 <!--       <groupId>org.opendaylight.yangtools</groupId> -->
66 <!--       <artifactId>features-test</artifactId> -->
67 <!--       <scope>test</scope> -->
68 <!--     </dependency> -->
69
70     <dependency>
71       <groupId>org.opendaylight.yangtools</groupId>
72       <artifactId>features-yangtools</artifactId>
73       <classifier>features</classifier>
74       <type>xml</type>
75       <scope>runtime</scope>
76     </dependency>
77   </dependencies>
78
79   <build>
80     <resources>
81       <resource>
82         <filtering>true</filtering>
83         <directory>src/main/resources</directory>
84       </resource>
85     </resources>
86     <plugins>
87       <plugin>
88         <groupId>org.apache.maven.plugins</groupId>
89         <artifactId>maven-resources-plugin</artifactId>
90         <executions>
91           <execution>
92             <id>filter</id>
93             <goals>
94               <goal>resources</goal>
95             </goals>
96             <phase>generate-resources</phase>
97           </execution>
98         </executions>
99       </plugin>
100       <!-- launches the feature test, which validates that your karaf feature 
101         can be installed inside of a karaf container. It doesn't validate that your 
102         functionality works correctly, just that you have all of the dependent bundles 
103         defined correctly. -->
104       <!-- <plugin> -->
105       <!-- <groupId>org.apache.maven.plugins</groupId> -->
106       <!-- <artifactId>maven-surefire-plugin</artifactId> -->
107       <!-- <version>2.16</version> -->
108       <!-- <configuration> -->
109       <!-- <systemPropertyVariables> -->
110       <!-- <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId> -->
111       <!-- <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId> -->
112       <!-- <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version> -->
113       <!-- </systemPropertyVariables> -->
114       <!-- <dependenciesToScan> -->
115       <!-- <dependency>org.opendaylight.yangtools:features-test</dependency> -->
116       <!-- </dependenciesToScan> -->
117       <!-- </configuration> -->
118       <!-- </plugin> -->
119       <plugin>
120         <groupId>org.codehaus.mojo</groupId>
121         <artifactId>build-helper-maven-plugin</artifactId>
122         <executions>
123           <execution>
124             <id>attach-artifacts</id>
125             <goals>
126               <goal>attach-artifact</goal>
127             </goals>
128             <phase>package</phase>
129             <configuration>
130               <artifacts>
131                 <artifact>
132                   <file>${project.build.directory}/classes/${features.file}</file>
133                   <type>xml</type>
134                   <classifier>features</classifier>
135                 </artifact>
136               </artifacts>
137             </configuration>
138           </execution>
139         </executions>
140       </plugin>
141     </plugins>
142   </build>
143 </project>