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