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