Created DLUX Features
[dlux.git] / 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     <groupId>org.opendaylight.dlux</groupId>
6     <artifactId>dlux-parent</artifactId>
7     <version>0.1.0-SNAPSHOT</version>
8     <relativePath>..</relativePath>
9   </parent>
10   <artifactId>features-dlux</artifactId>
11   <name>DLUX - Features </name>
12   <packaging>jar</packaging>
13
14   <properties>
15     <features.file>features.xml</features.file>
16   </properties>
17
18   <dependencies>
19       <dependency>
20          <groupId>org.opendaylight.yangtools</groupId>
21          <artifactId>features-test</artifactId>
22       </dependency>
23       <dependency>
24          <groupId>org.opendaylight.controller</groupId>
25          <artifactId>opendaylight-karaf-empty</artifactId>
26          <version>${commons.opendaylight.version}</version>
27          <type>zip</type>
28       </dependency>
29       <dependency>
30           <groupId>org.opendaylight.dlux</groupId>
31           <artifactId>dlux-web</artifactId>
32           <version>${project.version}</version>
33       </dependency>
34   </dependencies>
35
36   <build>
37     <resources>
38       <resource>
39         <filtering>true</filtering>
40         <directory>src/main/resources</directory>
41       </resource>
42     </resources>
43     <plugins>
44       <plugin>
45         <groupId>org.apache.maven.plugins</groupId>
46         <artifactId>maven-surefire-plugin</artifactId>
47         <version>2.16</version>
48         <configuration>
49           <systemPropertyVariables>
50             <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
51             <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
52             <karaf.distro.version>${commons.opendaylight.version}</karaf.distro.version>
53           </systemPropertyVariables>
54           <dependenciesToScan>
55            <dependency>org.opendaylight.yangtools:features-test</dependency>
56           </dependenciesToScan>
57         </configuration>
58       </plugin>
59       <plugin>
60         <groupId>org.apache.maven.plugins</groupId>
61         <artifactId>maven-resources-plugin</artifactId>
62         <executions>
63           <execution>
64             <id>filter</id>
65             <goals>
66               <goal>resources</goal>
67             </goals>
68             <phase>generate-resources</phase>
69           </execution>
70         </executions>
71       </plugin>
72       <plugin>
73         <groupId>org.codehaus.mojo</groupId>
74         <artifactId>build-helper-maven-plugin</artifactId>
75         <executions>
76           <execution>
77             <id>attach-artifacts</id>
78             <goals>
79               <goal>attach-artifact</goal>
80             </goals>
81             <phase>package</phase>
82             <configuration>
83               <artifacts>
84                 <artifact>
85                   <file>${project.build.directory}/classes/${features.file}</file>
86                   <type>xml</type>
87                   <classifier>features</classifier>
88                 </artifact>
89               </artifacts>
90             </configuration>
91           </execution>
92         </executions>
93       </plugin>
94       <plugin>
95         <groupId>org.apache.maven.plugins</groupId>
96         <artifactId>maven-surefire-plugin</artifactId>
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>${commons.opendaylight.version}</karaf.distro.version>
102           </systemPropertyVariables>
103           <dependenciesToScan>
104            <dependency>org.opendaylight.yangtools:features-test</dependency>
105           </dependenciesToScan>
106         </configuration>
107       </plugin>
108     </plugins>
109   </build>
110 </project>