Initial OpenECOMP APPC commit
[appc.git] / app-c / appc / appc-adapters / appc-netconf-adapter / appc-netconf-adapter-features / pom.xml
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     <parent>
4         <artifactId>appc-netconf-adapter</artifactId>
5         <groupId>org.openecomp.appc</groupId>
6         <version>1.0.0</version>
7     </parent>
8     <modelVersion>4.0.0</modelVersion>
9
10     <artifactId>appc-netconf-adapter-features</artifactId>
11     <packaging>jar</packaging>
12
13     <dependencies>
14         <dependency>
15             <groupId>org.openecomp.appc</groupId>
16             <artifactId>appc-netconf-adapter-bundle</artifactId>
17             <version>${project.version}</version>
18         </dependency>
19
20         <dependency>
21             <groupId>commons-lang</groupId>
22             <artifactId>commons-lang</artifactId>
23             <scope>compile</scope>
24         </dependency>
25
26         <dependency>
27             <groupId>org.opendaylight.controller</groupId>
28             <artifactId>features-mdsal</artifactId>
29             <classifier>features</classifier>
30             <type>xml</type>
31             <scope>runtime</scope>
32         </dependency>
33
34         <!-- dependency for opendaylight-karaf-empty for use by testing -->
35         <dependency>
36             <groupId>org.opendaylight.controller</groupId>
37             <artifactId>opendaylight-karaf-empty</artifactId>
38             <type>zip</type>
39         </dependency>
40
41        <!-- <dependency>-->
42             <!-- Required for launching the feature tests -->
43            <!-- <groupId>org.opendaylight.yangtools</groupId>
44             <artifactId>features-test</artifactId>
45             <scope>test</scope>
46         </dependency>-->
47
48         <dependency>
49             <groupId>org.opendaylight.yangtools</groupId>
50             <artifactId>features-yangtools</artifactId>
51             <classifier>features</classifier>
52             <type>xml</type>
53             <scope>runtime</scope>
54         </dependency>
55     </dependencies>
56
57     <build>
58         <resources>
59             <resource>
60                 <filtering>true</filtering>
61                 <directory>src/main/resources</directory>
62             </resource>
63         </resources>
64         <plugins>
65             <plugin>
66                 <groupId>org.apache.maven.plugins</groupId>
67                 <artifactId>maven-resources-plugin</artifactId>
68                 <executions>
69                     <execution>
70                         <id>filter</id>
71                         <goals>
72                             <goal>resources</goal>
73                         </goals>
74                         <phase>generate-resources</phase>
75                     </execution>
76                 </executions>
77             </plugin>
78             <!-- launches the feature test, which validates that your karaf feature
79               can be installed inside of a karaf container. It doesn't validate that your
80               functionality works correctly, just that you have all of the dependent bundles
81               defined correctly. -->
82             <!-- <plugin> -->
83             <!-- <groupId>org.apache.maven.plugins</groupId> -->
84             <!-- <artifactId>maven-surefire-plugin</artifactId> -->
85             <!-- <version>2.16</version> -->
86             <!-- <configuration> -->
87             <!-- <systemPropertyVariables> -->
88             <!-- <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId> -->
89             <!-- <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId> -->
90             <!-- <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version> -->
91             <!-- </systemPropertyVariables> -->
92             <!-- <dependenciesToScan> -->
93             <!-- <dependency>org.opendaylight.yangtools:features-test</dependency> -->
94             <!-- </dependenciesToScan> -->
95             <!-- </configuration> -->
96             <!-- </plugin> -->
97             <plugin>
98                 <groupId>org.codehaus.mojo</groupId>
99                 <artifactId>build-helper-maven-plugin</artifactId>
100                 <executions>
101                     <execution>
102                         <id>attach-artifacts</id>
103                         <goals>
104                             <goal>attach-artifact</goal>
105                         </goals>
106                         <phase>package</phase>
107                         <configuration>
108                             <artifacts>
109                                 <artifact>
110                                     <file>${project.build.directory}/classes/${features.file}</file>
111                                     <type>xml</type>
112                                     <classifier>features</classifier>
113                                 </artifact>
114                             </artifacts>
115                         </configuration>
116                     </execution>
117                 </executions>
118             </plugin>
119         </plugins>
120     </build>
121
122 </project>