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