fix some build issues
[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.1.1-SNAPSHOT</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                         <version>${odl.karaf.empty.distro.version}</version>
48                         <type>zip</type>
49                 </dependency>
50
51
52                 <dependency>
53                     <!-- Required for launching the feature tests-->
54                         <groupId>org.opendaylight.odlparent</groupId>
55                         <artifactId>features-test</artifactId>
56                         <scope>test</scope>
57                         <version>${odl.commons.opendaylight.version}</version>
58                 </dependency>
59
60                 <dependency>
61                         <groupId>org.opendaylight.yangtools</groupId>
62                         <artifactId>features-yangtools</artifactId>
63                         <version>${odl.yangtools.version}</version>
64                         <classifier>features</classifier>
65                         <type>xml</type>
66                         <scope>runtime</scope>
67                 </dependency>
68         </dependencies>
69
70         <build>
71                 <resources>
72                         <resource>
73                                 <filtering>true</filtering>
74                                 <directory>src/main/resources</directory>
75                         </resource>
76                 </resources>
77                 <plugins>
78                         <plugin>
79                                 <groupId>org.apache.maven.plugins</groupId>
80                                 <artifactId>maven-resources-plugin</artifactId>
81                                 <executions>
82                                         <execution>
83                                                 <id>filter</id>
84                                                 <goals>
85                                                         <goal>resources</goal>
86                                                 </goals>
87                                                 <phase>generate-resources</phase>
88                                         </execution>
89                                 </executions>
90                         </plugin>
91                         <!--
92                         <plugin>
93                             launches the feature test, which validates that your karaf feature can
94                                  be installed inside of a karaf container. It doesn't validate that your
95                                  functionality works correctly, just that you have all of the dependent
96                                  bundles defined correctly.
97                                 <groupId>org.apache.maven.plugins</groupId>
98                                 <artifactId>maven-surefire-plugin</artifactId>
99                                 <version>2.16</version>
100                                 <configuration>
101                                         <systemPropertyVariables>
102                                                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
103                                                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
104                                                 <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version>
105                                         </systemPropertyVariables>
106                                         <dependenciesToScan>
107                                                 <dependency>org.opendaylight.yangtools:features-test</dependency>
108                                         </dependenciesToScan>
109                                 </configuration>
110                         </plugin>
111                         -->
112                         <plugin>
113                                 <groupId>org.codehaus.mojo</groupId>
114                                 <artifactId>build-helper-maven-plugin</artifactId>
115                                 <executions>
116                                         <execution>
117                                                 <id>attach-artifacts</id>
118                                                 <goals>
119                                                         <goal>attach-artifact</goal>
120                                                 </goals>
121                                                 <phase>package</phase>
122                                                 <configuration>
123                                                         <artifacts>
124                                                                 <artifact>
125                                                                         <file>${project.build.directory}/classes/${features.file}</file>
126                                                                         <type>xml</type>
127                                                                         <classifier>features</classifier>
128                                                                 </artifact>
129                                                         </artifacts>
130                                                 </configuration>
131                                         </execution>
132                                 </executions>
133                         </plugin>
134                 </plugins>
135         </build>
136 </project>