Release odlparent
[odlparent.git] / feature-repo-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright © 2016 Red Hat, Inc. and others.  All rights reserved.
4
5  This program and the accompanying materials are made available under the
6  terms of the Eclipse Public License v1.0 which accompanies this distribution,
7  and is available at http://www.eclipse.org/legal/epl-v10.html
8  -->
9 <project xmlns="http://maven.apache.org/POM/4.0.0"
10          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
14     <!--
15          Base parent POM for building, packaging and testing Karaf feature repositories.
16          Karaf features are generated based on the POM dependencies; they can be supplemented by a base
17          feature.xml file in src/main/feature.
18
19          Users should do the following:
20
21          - specify this as their parent
22          - make sure the packaging is set to feature
23          - specify features to be provided in the repository by depending on them in the project <dependencies/>
24     -->
25
26     <parent>
27         <groupId>org.opendaylight.odlparent</groupId>
28         <artifactId>odlparent</artifactId>
29         <version>13.0.9</version>
30         <relativePath>../odlparent</relativePath>
31     </parent>
32
33     <artifactId>feature-repo-parent</artifactId>
34     <packaging>pom</packaging>
35     <name>ODL :: odlparent :: ${project.artifactId}</name>
36
37     <properties>
38         <skip.karaf.featureTest>true</skip.karaf.featureTest>
39         <jacoco.skip>true</jacoco.skip>
40
41         <!-- We typically do not have code in feature artifacts, which throws off maven-dependency-plugin -->
42         <odlparent.dependency.skip>true</odlparent.dependency.skip>
43     </properties>
44
45     <dependencies>
46         <!-- Test the generated features.xml -->
47         <dependency>
48             <groupId>org.opendaylight.odlparent</groupId>
49             <artifactId>features-test</artifactId>
50             <version>13.0.9</version>
51             <scope>test</scope>
52         </dependency>
53         <dependency>
54             <groupId>org.opendaylight.odlparent</groupId>
55             <artifactId>bundles-test-lib</artifactId>
56             <scope>test</scope>
57         </dependency>
58         <dependency>
59             <groupId>org.apache.karaf.bundle</groupId>
60             <artifactId>org.apache.karaf.bundle.core</artifactId>
61             <version>${karaf.version}</version>
62             <scope>test</scope>
63         </dependency>
64         <!-- Force SLF4J to test scope -->
65         <dependency>
66             <groupId>org.slf4j</groupId>
67             <artifactId>slf4j-api</artifactId>
68             <scope>test</scope>
69         </dependency>
70     </dependencies>
71
72     <build>
73         <plugins>
74             <plugin>
75                 <!-- This generates the META-INF/maven/dependencies.properties file
76                      which is required by the versionAsInProject() used in SingleFeatureTest -->
77                 <groupId>org.apache.servicemix.tooling</groupId>
78                 <artifactId>depends-maven-plugin</artifactId>
79             </plugin>
80             <plugin>
81                 <artifactId>maven-surefire-plugin</artifactId>
82                 <configuration>
83                     <skip>${skip.karaf.featureTest}</skip>
84                     <dependenciesToScan>
85                         <dependency>org.opendaylight.odlparent:features-test</dependency>
86                     </dependenciesToScan>
87                     <additionalClasspathElements>
88                         <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
89                     </additionalClasspathElements>
90                 </configuration>
91                 <executions>
92                     <execution>
93                         <phase>test</phase>
94                         <goals>
95                             <goal>test</goal>
96                         </goals>
97                     </execution>
98                 </executions>
99             </plugin>
100             <plugin>
101                 <groupId>org.apache.karaf.tooling</groupId>
102                 <artifactId>karaf-maven-plugin</artifactId>
103                 <extensions>true</extensions>
104                 <configuration>
105                     <enableGeneration>true</enableGeneration>
106                 </configuration>
107             </plugin>
108         </plugins>
109         <pluginManagement>
110           <plugins>
111             <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
112             <plugin>
113               <groupId>org.eclipse.m2e</groupId>
114               <artifactId>lifecycle-mapping</artifactId>
115               <version>1.0.0</version>
116               <configuration>
117                 <lifecycleMappingMetadata>
118                   <pluginExecutions>
119                     <pluginExecution>
120                       <pluginExecutionFilter>
121                         <groupId>org.apache.karaf.tooling</groupId>
122                         <artifactId>karaf-maven-plugin</artifactId>
123                         <versionRange>[4.1.5,)</versionRange>
124                         <goals>
125                           <goal>verify</goal>
126                         </goals>
127                       </pluginExecutionFilter>
128                       <action>
129                         <ignore></ignore>
130                       </action>
131                     </pluginExecution>
132                   </pluginExecutions>
133                 </lifecycleMappingMetadata>
134               </configuration>
135             </plugin>
136           </plugins>
137         </pluginManagement>
138     </build>
139
140 </project>