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