Use groupId and version from parent
[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>1.9.1-SNAPSHOT</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         <karaf.version>${karaf4.version}</karaf.version>
39         <skip.karaf.featureTest>false</skip.karaf.featureTest>
40         <jacoco.skip>true</jacoco.skip>
41     </properties>
42
43     <dependencies>
44         <!-- Test the generated features.xml -->
45         <dependency>
46             <groupId>org.opendaylight.odlparent</groupId>
47             <artifactId>features4-test</artifactId>
48             <version>1.9.1-SNAPSHOT</version>
49             <scope>test</scope>
50         </dependency>
51         <dependency>
52             <groupId>org.opendaylight.odlparent</groupId>
53             <artifactId>bundles-test-lib</artifactId>
54             <version>1.9.1-SNAPSHOT</version>
55             <scope>test</scope>
56         </dependency>
57         <dependency>
58             <groupId>org.apache.karaf.bundle</groupId>
59             <artifactId>org.apache.karaf.bundle.core</artifactId>
60             <version>${karaf4.version}</version>
61             <scope>test</scope>
62         </dependency>
63         <!-- Force SLF4J to test scope -->
64         <dependency>
65             <groupId>org.slf4j</groupId>
66             <artifactId>slf4j-api</artifactId>
67             <scope>test</scope>
68         </dependency>
69     </dependencies>
70
71     <build>
72         <plugins>
73             <plugin>
74                 <!-- This generates the META-INF/maven/dependencies.properties file
75                      which is required by the versionAsInProject() used in SingleFeatureTest -->
76                 <groupId>org.apache.servicemix.tooling</groupId>
77                 <artifactId>depends-maven-plugin</artifactId>
78             </plugin>
79             <plugin>
80                 <artifactId>maven-surefire-plugin</artifactId>
81                 <configuration>
82                     <skip>${skip.karaf.featureTest}</skip>
83                     <dependenciesToScan>
84                         <dependency>org.opendaylight.odlparent:features4-test</dependency>
85                     </dependenciesToScan>
86                     <additionalClasspathElements>
87                         <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
88                     </additionalClasspathElements>
89                 </configuration>
90                 <executions>
91                     <execution>
92                         <phase>test</phase>
93                         <goals>
94                             <goal>test</goal>
95                         </goals>
96                     </execution>
97                 </executions>
98             </plugin>
99             <plugin>
100                 <groupId>org.apache.karaf.tooling</groupId>
101                 <artifactId>karaf-maven-plugin</artifactId>
102                 <version>${karaf4.plugin.version}</version>
103                 <extensions>true</extensions>
104             </plugin>
105         </plugins>
106     </build>
107
108     <!--
109         Maven Site Configuration
110
111         The following configuration is necessary for maven-site-plugin to
112         correctly identify the correct deployment path for OpenDaylight Maven
113         sites.
114     -->
115     <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
116
117     <distributionManagement>
118         <site>
119             <id>opendaylight-site</id>
120             <url>${nexus.site.url}/${project.artifactId}/</url>
121         </site>
122     </distributionManagement>
123
124 </project>