Use groupId and version from parent
[odlparent.git] / single-feature-parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  Copyright © 2016, 2017 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 and packaging single Karaf features.
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          By default, such single features aren't tested for loadability; they're supposed to be aggregated
20          in a feature repository (see feature-repo-parent), which is tested using SingleFeatureTest. The
21          sft profile can be used to enforce SingleFeatureTest on single features too.
22
23          Single features which aren't part of a repository can not be considered part of a project's API.
24          In any case, refer to each project's declared features to determine their API and future
25          availability.
26
27          Users should do the following:
28
29          - specify this as their parent
30          - make sure the packaging is set to feature
31          - setup projects <dependencies/> as needed for their features
32     -->
33
34     <parent>
35         <groupId>org.opendaylight.odlparent</groupId>
36         <artifactId>untested-single-feature-parent</artifactId>
37         <version>1.9.1-SNAPSHOT</version>
38         <relativePath>../untested-single-feature-parent</relativePath>
39     </parent>
40
41     <artifactId>single-feature-parent</artifactId>
42     <packaging>pom</packaging>
43     <name>ODL :: odlparent :: ${project.artifactId}</name>
44
45     <properties>
46         <karaf.version>${karaf4.version}</karaf.version>
47         <jacoco.skip>true</jacoco.skip>
48         <skip.karaf.featureTest>false</skip.karaf.featureTest>
49     </properties>
50
51     <dependencies>
52         <!-- Test the generated features.xml -->
53         <dependency>
54             <groupId>org.opendaylight.odlparent</groupId>
55             <artifactId>features4-test</artifactId>
56             <version>1.9.1-SNAPSHOT</version>
57             <scope>test</scope>
58         </dependency>
59         <dependency>
60             <groupId>org.opendaylight.odlparent</groupId>
61             <artifactId>bundles-test-lib</artifactId>
62             <version>1.9.1-SNAPSHOT</version>
63             <scope>test</scope>
64         </dependency>
65         <dependency>
66             <groupId>org.apache.karaf.bundle</groupId>
67             <artifactId>org.apache.karaf.bundle.core</artifactId>
68             <version>${karaf4.version}</version>
69             <scope>test</scope>
70         </dependency>
71         <!-- Force SLF4J to test scope -->
72         <dependency>
73             <groupId>org.slf4j</groupId>
74             <artifactId>slf4j-api</artifactId>
75             <scope>test</scope>
76         </dependency>
77     </dependencies>
78
79     <build>
80         <plugins>
81             <plugin>
82                 <artifactId>maven-surefire-plugin</artifactId>
83                 <version>${maven.surefire.version}</version>
84                 <configuration>
85                     <dependenciesToScan>
86                         <dependency>org.opendaylight.odlparent:features4-test</dependency>
87                     </dependenciesToScan>
88                     <additionalClasspathElements>
89                         <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
90                     </additionalClasspathElements>
91                     <skip>${skip.karaf.featureTest}</skip>
92                 </configuration>
93                 <executions>
94                     <execution>
95                         <phase>test</phase>
96                         <goals>
97                             <goal>test</goal>
98                         </goals>
99                     </execution>
100                 </executions>
101             </plugin>
102         </plugins>
103     </build>
104
105     <!--
106         Maven Site Configuration
107
108         The following configuration is necessary for maven-site-plugin to
109         correctly identify the correct deployment path for OpenDaylight Maven
110         sites.
111     -->
112     <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
113
114     <distributionManagement>
115         <site>
116             <id>opendaylight-site</id>
117             <url>${nexus.site.url}/${project.artifactId}/</url>
118         </site>
119     </distributionManagement>
120
121 </project>