Bump versions by x.y.(z+1)
[odlparent.git] / karaf4-plugin / 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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
10   <modelVersion>4.0.0</modelVersion>
11   <parent>
12     <artifactId>odlparent</artifactId>
13     <groupId>org.opendaylight.odlparent</groupId>
14     <version>1.8.3-SNAPSHOT</version>
15     <relativePath>../odlparent/</relativePath>
16   </parent>
17   <artifactId>karaf4-plugin</artifactId>
18   <packaging>maven-plugin</packaging>
19
20   <name>ODL :: odlparent :: ${project.artifactId}</name>
21
22   <properties>
23     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24   </properties>
25
26   <dependencies>
27     <dependency>
28       <groupId>org.apache.maven</groupId>
29       <artifactId>maven-plugin-api</artifactId>
30       <version>3.3.3</version>
31     </dependency>
32     <dependency>
33       <groupId>org.apache.maven</groupId>
34       <artifactId>maven-core</artifactId>
35       <version>3.3.3</version>
36     </dependency>
37     <dependency>
38       <groupId>org.apache.maven</groupId>
39       <artifactId>maven-model</artifactId>
40       <version>3.3.3</version>
41     </dependency>
42     <dependency>
43         <groupId>org.ops4j.pax.url</groupId>
44         <artifactId>pax-url-aether</artifactId>
45         <scope>compile</scope>
46     </dependency>
47     <dependency>
48       <groupId>org.apache.karaf.features</groupId>
49       <artifactId>org.apache.karaf.features.core</artifactId>
50       <version>${karaf4.version}</version>
51       <scope>compile</scope>
52     </dependency>
53     <dependency>
54       <groupId>org.eclipse.aether</groupId>
55       <artifactId>aether-api</artifactId>
56       <version>1.0.2.v20150114</version>
57     </dependency>
58     <dependency>
59       <groupId>org.opendaylight.odlparent</groupId>
60       <artifactId>features-test</artifactId>
61       <version>${project.version}</version>
62     </dependency>
63     <dependency>
64       <groupId>org.osgi</groupId>
65       <artifactId>org.osgi.core</artifactId>
66       <scope>runtime</scope>
67     </dependency>
68   </dependencies>
69
70   <build>
71     <plugins>
72       <plugin>
73         <artifactId>maven-checkstyle-plugin</artifactId>
74         <executions>
75           <execution>
76             <id>check-license</id>
77             <goals>
78               <goal>check</goal>
79             </goals>
80             <phase>process-sources</phase>
81             <configuration>
82               <configLocation>check-license.xml</configLocation>
83               <includeResources>false</includeResources>
84               <includeTestResources>false</includeTestResources>
85               <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory>
86               <excludes>
87                 <!-- Skip Apache Licensed files -->
88                 org/opendaylight/odlparent/PopulateLocalRepoMojo.java
89               </excludes>
90               <failsOnError>false</failsOnError>
91               <consoleOutput>true</consoleOutput>
92             </configuration>
93           </execution>
94         </executions>
95       </plugin>
96       <plugin>
97         <artifactId>maven-plugin-plugin</artifactId>
98         <configuration>
99           <goalPrefix>karaf</goalPrefix>
100           <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
101         </configuration>
102         <executions>
103           <execution>
104             <id>mojo-descriptor</id>
105             <goals>
106               <goal>descriptor</goal>
107             </goals>
108           </execution>
109           <execution>
110             <id>help-goal</id>
111             <goals>
112               <goal>helpmojo</goal>
113             </goals>
114           </execution>
115         </executions>
116       </plugin>
117     </plugins>
118   </build>
119   <profiles>
120     <profile>
121       <id>run-its</id>
122       <build>
123
124         <plugins>
125           <plugin>
126             <artifactId>maven-invoker-plugin</artifactId>
127             <version>2.0.0</version>
128             <configuration>
129               <debug>true</debug>
130               <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
131               <pomIncludes>
132                 <pomInclude>*/pom.xml</pomInclude>
133               </pomIncludes>
134               <postBuildHookScript>verify</postBuildHookScript>
135               <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
136               <settingsFile>src/it/settings.xml</settingsFile>
137               <goals>
138                 <goal>clean</goal>
139                 <goal>test-compile</goal>
140               </goals>
141             </configuration>
142             <executions>
143               <execution>
144                 <id>integration-test</id>
145                 <goals>
146                   <goal>install</goal>
147                   <goal>integration-test</goal>
148                   <goal>verify</goal>
149                 </goals>
150               </execution>
151             </executions>
152           </plugin>
153         </plugins>
154
155       </build>
156     </profile>
157   </profiles>
158
159   <!--
160     Maven Site Configuration
161
162     The following configuration is necessary for maven-site-plugin to
163     correctly identify the correct deployment path for OpenDaylight Maven
164     sites.
165   -->
166   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
167
168   <distributionManagement>
169     <site>
170       <id>opendaylight-site</id>
171       <url>${nexus.site.url}/${project.artifactId}/</url>
172     </site>
173   </distributionManagement>
174 </project>