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