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