63cc3a5cd584977562bb6754f9cb153f3bf89504
[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.8.0-SNAPSHOT</version>
38         <relativePath>../untested-single-feature-parent</relativePath>
39     </parent>
40
41     <groupId>org.opendaylight.odlparent</groupId>
42     <artifactId>single-feature-parent</artifactId>
43     <version>1.8.0-SNAPSHOT</version>
44     <packaging>pom</packaging>
45     <name>ODL :: odlparent :: ${project.artifactId}</name>
46
47     <properties>
48         <karaf.version>${karaf4.version}</karaf.version>
49         <jacoco.skip>true</jacoco.skip>
50     </properties>
51
52     <dependencies>
53         <!-- Test the generated features.xml -->
54         <dependency>
55             <groupId>org.opendaylight.odlparent</groupId>
56             <artifactId>features4-test</artifactId>
57             <version>1.8.0-SNAPSHOT</version>
58             <scope>test</scope>
59         </dependency>
60         <!-- Force SLF4J to test scope -->
61         <dependency>
62             <groupId>org.slf4j</groupId>
63             <artifactId>slf4j-api</artifactId>
64             <scope>test</scope>
65         </dependency>
66     </dependencies>
67
68     <build>
69         <plugins>
70             <plugin>
71                 <artifactId>maven-surefire-plugin</artifactId>
72                 <version>${maven.surefire.version}</version>
73                 <configuration>
74                     <dependenciesToScan>
75                         <dependency>org.opendaylight.odlparent:features4-test</dependency>
76                     </dependenciesToScan>
77                     <additionalClasspathElements>
78                         <additionalClasspathElement>${project.build.directory}/feature</additionalClasspathElement>
79                     </additionalClasspathElements>
80                 </configuration>
81                 <executions>
82                     <execution>
83                         <phase>test</phase>
84                         <goals>
85                             <goal>test</goal>
86                         </goals>
87                     </execution>
88                 </executions>
89             </plugin>
90         </plugins>
91     </build>
92
93     <!--
94         Maven Site Configuration
95
96         The following configuration is necessary for maven-site-plugin to
97         correctly identify the correct deployment path for OpenDaylight Maven
98         sites.
99     -->
100     <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
101
102     <distributionManagement>
103         <site>
104             <id>opendaylight-site</id>
105             <url>${nexus.site.url}/${project.artifactId}/</url>
106         </site>
107     </distributionManagement>
108
109 </project>