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