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