Break the repository index out separately from the test features
[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.3.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.yangtools</groupId>
37       <artifactId>features-test</artifactId>
38       <version>0.7.0-SNAPSHOT</version>
39     </dependency>
40     <!-- dependency for opendaylight-karaf-empty for use by testing -->
41     <dependency>
42       <groupId>org.opendaylight.controller</groupId>
43       <artifactId>opendaylight-karaf-empty</artifactId>
44       <version>1.5.0-SNAPSHOT</version>
45       <type>zip</type>
46     </dependency>
47    </dependencies>
48    <build>
49       <resources>
50          <resource>
51             <directory>src/main/resources</directory>
52             <filtering>true</filtering>
53          </resource>
54       </resources>
55       <plugins>
56          <plugin>
57             <groupId>org.apache.karaf.tooling</groupId>
58             <artifactId>karaf-maven-plugin</artifactId>
59             <version>${karaf.version}</version>
60             <extensions>true</extensions>
61             <executions>
62                <execution>
63                   <id>features-create-kar</id>
64                   <goals>
65                      <goal>features-create-kar</goal>
66                   </goals>
67                   <configuration>
68                      <featuresFile>${project.build.directory}/classes/${features.file}</featuresFile>
69                   </configuration>
70                </execution>
71             </executions>
72         <!-- There is no useful configuration for the kar mojo. The features-generate-descriptor mojo configuration may be useful -->
73          </plugin>
74          <plugin>
75             <groupId>org.apache.maven.plugins</groupId>
76             <artifactId>maven-resources-plugin</artifactId>
77             <executions>
78                <execution>
79                   <id>filter</id>
80                   <phase>generate-resources</phase>
81                   <goals>
82                      <goal>resources</goal>
83                   </goals>
84                </execution>
85             </executions>
86          </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                   <phase>package</phase>
94                   <goals>
95                      <goal>attach-artifact</goal>
96                   </goals>
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          <plugin>
110             <groupId>org.apache.maven.plugins</groupId>
111             <artifactId>maven-surefire-plugin</artifactId>
112             <version>2.16</version>
113             <configuration>
114               <systemPropertyVariables>
115                 <karaf.distro.groupId>org.opendaylight.controller</karaf.distro.groupId>
116                 <karaf.distro.artifactId>opendaylight-karaf-empty</karaf.distro.artifactId>
117                 <karaf.distro.version>1.5.0-SNAPSHOT</karaf.distro.version>
118               </systemPropertyVariables>
119               <dependenciesToScan>
120                <dependency>org.opendaylight.yangtools:features-test</dependency>
121               </dependenciesToScan>
122             </configuration>
123           </plugin>
124       </plugins>
125    </build>
126 </project>