62b790b0dafbd8905aa72acc52f6b7eaa0cec6e1
[controller.git] / features / nsf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project>
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.4.2-SNAPSHOT</version>
8     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>features-nsf</artifactId>
11   <version>${nsf.version}</version>
12   <packaging>jar</packaging>
13   <name>OpenDaylight :: Features :: Network Service Functions</name>
14   <description>Feature for Network Service Functions</description>
15   <properties>
16     <features.file>features.xml</features.file>
17   </properties>
18   <dependencies>
19     <!-- test to validate features.xml -->
20     <dependency>
21       <groupId>org.opendaylight.yangtools</groupId>
22       <artifactId>features-test</artifactId>
23     </dependency>
24     <!-- dependency for opendaylight-karaf-empty for use by testing -->
25     <dependency>
26       <groupId>org.opendaylight.controller</groupId>
27       <artifactId>opendaylight-karaf-empty</artifactId>
28       <version>1.4.2-SNAPSHOT</version>
29       <type>zip</type>
30     </dependency>
31   </dependencies>
32   <build>
33     <resources>
34       <resource>
35         <filtering>true</filtering>
36         <directory>src/main/resources</directory>
37       </resource>
38     </resources>
39     <plugins>
40       <plugin>
41         <groupId>org.apache.maven.plugins</groupId>
42         <artifactId>maven-resources-plugin</artifactId>
43         <executions>
44           <execution>
45             <id>filter</id>
46             <goals>
47               <goal>resources</goal>
48             </goals>
49             <phase>generate-resources</phase>
50           </execution>
51         </executions>
52       </plugin>
53       <plugin>
54         <groupId>org.codehaus.mojo</groupId>
55         <artifactId>build-helper-maven-plugin</artifactId>
56         <executions>
57           <execution>
58             <id>attach-artifacts</id>
59             <goals>
60               <goal>attach-artifact</goal>
61             </goals>
62             <phase>package</phase>
63             <configuration>
64               <artifacts>
65                 <artifact>
66                   <file>${project.build.directory}/classes/${features.file}</file>
67                   <type>xml</type>
68                   <classifier>features</classifier>
69                 </artifact>
70               </artifacts>
71             </configuration>
72           </execution>
73         </executions>
74       </plugin>
75       <plugin>
76         <groupId>org.apache.maven.plugins</groupId>
77         <artifactId>maven-surefire-plugin</artifactId>
78         <configuration>
79           <systemPropertyVariables>
80             <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
81             <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
82             <karaf.distro.version>${commons.opendaylight.version}</karaf.distro.version>
83           </systemPropertyVariables>
84           <dependenciesToScan>
85            <dependency>org.opendaylight.yangtools:features-test</dependency>
86           </dependenciesToScan>
87         </configuration>
88       </plugin>
89     </plugins>
90   </build>
91 </project>