Fix Armoury version
[integration/distribution.git] / features / test / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2014 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12    <modelVersion>4.0.0</modelVersion>
13    <parent>
14       <groupId>org.opendaylight.integration</groupId>
15       <artifactId>root</artifactId>
16       <version>0.4.0-SNAPSHOT</version>
17       <relativePath>../../</relativePath>
18    </parent>
19    <artifactId>features-integration-test</artifactId>
20    <packaging>jar</packaging>
21    <properties>
22       <features.file>features.xml</features.file>
23    </properties>
24    <dependencies>
25     <!-- dependencies on feature repos -->
26     <dependency>
27       <groupId>org.opendaylight.integration</groupId>
28       <artifactId>features-integration-index</artifactId>
29       <version>${project.version}</version>
30       <classifier>features</classifier>
31       <type>xml</type>
32     </dependency>
33
34     <!-- test to validate features.xml -->
35     <dependency>
36       <groupId>org.opendaylight.odlparent</groupId>
37       <artifactId>features-test</artifactId>
38       <version>1.6.0-SNAPSHOT</version>
39     </dependency>
40     <dependency>
41       <groupId>junit</groupId>
42       <artifactId>junit-dep</artifactId>
43       <version>${junit.version}</version>
44       <scope>test</scope>
45     </dependency>
46     <!-- dependency for opendaylight-karaf-empty for use by testing -->
47     <dependency>
48       <groupId>org.opendaylight.controller</groupId>
49       <artifactId>opendaylight-karaf-empty</artifactId>
50       <version>1.6.0-SNAPSHOT</version>
51       <type>zip</type>
52     </dependency>
53    </dependencies>
54    <build>
55       <resources>
56          <resource>
57             <directory>src/main/resources</directory>
58             <filtering>true</filtering>
59          </resource>
60       </resources>
61       <plugins>
62          <plugin>
63             <groupId>org.apache.karaf.tooling</groupId>
64             <artifactId>karaf-maven-plugin</artifactId>
65             <extensions>true</extensions>
66             <executions>
67                <execution>
68                   <id>features-create-kar</id>
69                   <goals>
70                      <goal>features-create-kar</goal>
71                   </goals>
72                   <configuration>
73                      <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
74                   </configuration>
75                </execution>
76             </executions>
77         <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
78          </plugin>
79          <plugin>
80             <groupId>org.apache.maven.plugins</groupId>
81             <artifactId>maven-resources-plugin</artifactId>
82             <executions>
83                <execution>
84                   <id>filter</id>
85                   <phase>generate-resources</phase>
86                   <goals>
87                      <goal>resources</goal>
88                   </goals>
89                </execution>
90             </executions>
91          </plugin>
92          <plugin>
93             <groupId>org.codehaus.mojo</groupId>
94             <artifactId>build-helper-maven-plugin</artifactId>
95             <executions>
96                <execution>
97                   <id>attach-artifacts</id>
98                   <phase>package</phase>
99                   <goals>
100                      <goal>attach-artifact</goal>
101                   </goals>
102                   <configuration>
103                      <artifacts>
104                         <artifact>
105                            <file>${project.build.directory}/classes/${features.file}</file>
106                            <type>xml</type>
107                            <classifier>features</classifier>
108                         </artifact>
109                      </artifacts>
110                   </configuration>
111                </execution>
112             </executions>
113          </plugin>
114          <plugin>
115             <groupId>org.apache.maven.plugins</groupId>
116             <artifactId>maven-surefire-plugin</artifactId>
117             <version>2.16</version>
118             <configuration>
119               <systemPropertyVariables>
120                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
121                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
122                 <karaf.distro.version>1.6.0-SNAPSHOT</karaf.distro.version>
123               </systemPropertyVariables>
124               <dependenciesToScan>
125                <dependency>org.opendaylight.odlparent:features-test</dependency>
126               </dependenciesToScan>
127             </configuration>
128           </plugin>
129       </plugins>
130    </build>
131 </project>