First part of onap rename
[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.onap.appc</groupId>
7                 <version>1.3.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.onap.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                         <classifier>features</classifier>
32                         <type>xml</type>
33
34                         <scope>runtime</scope>
35                 </dependency>
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                         <version>${odl.commons.opendaylight.version}</version>
52                         <scope>test</scope>
53                 </dependency>
54
55         </dependencies>
56
57         <build>
58                 <resources>
59                         <resource>
60                                 <filtering>true</filtering>
61                                 <directory>src/main/resources</directory>
62                         </resource>
63                 </resources>
64                 <plugins>
65                         <plugin>
66                                 <groupId>org.apache.maven.plugins</groupId>
67                                 <artifactId>maven-resources-plugin</artifactId>
68                                 <executions>
69                                         <execution>
70                                                 <id>filter</id>
71                                                 <goals>
72                                                         <goal>resources</goal>
73                                                 </goals>
74                                                 <phase>generate-resources</phase>
75                                         </execution>
76                                 </executions>
77                         </plugin>
78                         <!-- launches the feature test, which validates that your karaf feature 
79                                 can be installed inside of a karaf container. It doesn't validate that your 
80                                 functionality works correctly, just that you have all of the dependent bundles 
81                                 defined correctly. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> 
82                                 <version>2.16</version> <configuration> <systemPropertyVariables> <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId> 
83                                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId> 
84                                 <karaf.distro.version>${odl.karaf.empty.distro.version}</karaf.distro.version> 
85                                 </systemPropertyVariables> <dependenciesToScan> <dependency>org.opendaylight.yangtools:features-test</dependency> 
86                                 </dependenciesToScan> </configuration> </plugin> -->
87                         <plugin>
88                                 <groupId>org.codehaus.mojo</groupId>
89                                 <artifactId>build-helper-maven-plugin</artifactId>
90                                 <executions>
91                                         <execution>
92                                                 <id>attach-artifacts</id>
93                                                 <goals>
94                                                         <goal>attach-artifact</goal>
95                                                 </goals>
96                                                 <phase>package</phase>
97                                                 <configuration>
98                                                         <artifacts>
99                                                                 <artifact>
100                                                                         <file>${project.build.directory}/classes/${features.file}</file>
101                                                                         <type>xml</type>
102                                                                         <classifier>features</classifier>
103                                                                 </artifact>
104                                                         </artifacts>
105                                                 </configuration>
106                                         </execution>
107                                 </executions>
108                         </plugin>
109                 </plugins>
110         </build>
111 </project>