Merge "Bug 2515 - Jersey to support JAX-RS 2.0"
[odlparent.git] / karaf-plugin / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <artifactId>odlparent</artifactId>
6     <groupId>org.opendaylight.odlparent</groupId>
7     <version>1.6.0-SNAPSHOT</version>
8     <relativePath>../odlparent/</relativePath>
9   </parent>
10   <artifactId>karaf-plugin</artifactId>
11   <packaging>maven-plugin</packaging>
12
13   <name>karaf-plugin Maven Plugin</name>
14
15   <!-- FIXME change it to the project's website -->
16   <url>http://maven.apache.org</url>
17
18   <properties>
19     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20   </properties>
21
22   <dependencies>
23     <dependency>
24       <groupId>org.apache.maven</groupId>
25       <artifactId>maven-plugin-api</artifactId>
26       <version>3.0.3</version>
27     </dependency>
28     <dependency>
29         <groupId>org.ops4j.pax.url</groupId>
30         <artifactId>pax-url-wrap</artifactId>
31         <version>${url.version}</version>
32     </dependency>
33     <dependency>
34         <groupId>org.ops4j.pax.url</groupId>
35         <artifactId>pax-url-aether</artifactId>
36         <scope>compile</scope>
37     </dependency>
38     <dependency>
39       <groupId>org.apache.karaf.features</groupId>
40       <artifactId>org.apache.karaf.features.core</artifactId>
41       <version>${karaf.version}</version>
42       <scope>compile</scope>
43     </dependency>
44     <dependency>
45       <groupId>org.apache.karaf.tooling</groupId>
46       <artifactId>karaf-maven-plugin</artifactId>
47       <version>${karaf.version}</version>
48     </dependency>
49     <dependency>
50        <groupId>com.google.guava</groupId>
51        <artifactId>guava</artifactId>
52       </dependency>
53     <dependency>
54       <groupId>junit</groupId>
55       <artifactId>junit</artifactId>
56       <scope>test</scope>
57     </dependency>
58   </dependencies>
59
60   <build>
61     <plugins>
62       <plugin>
63         <groupId>org.apache.maven.plugins</groupId>
64         <artifactId>maven-plugin-plugin</artifactId>
65         <version>${maven.plugin.version}</version>
66         <configuration>
67           <goalPrefix>karaf-plugin</goalPrefix>
68           <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
69         </configuration>
70         <executions>
71           <execution>
72             <id>mojo-descriptor</id>
73             <goals>
74               <goal>descriptor</goal>
75             </goals>
76           </execution>
77           <execution>
78             <id>help-goal</id>
79             <goals>
80               <goal>helpmojo</goal>
81             </goals>
82           </execution>
83         </executions>
84       </plugin>
85     </plugins>
86   </build>
87   <profiles>
88     <profile>
89       <id>run-its</id>
90       <build>
91
92         <plugins>
93           <plugin>
94             <groupId>org.apache.maven.plugins</groupId>
95             <artifactId>maven-invoker-plugin</artifactId>
96             <version>1.7</version>
97             <configuration>
98               <debug>true</debug>
99               <cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
100               <pomIncludes>
101                 <pomInclude>*/pom.xml</pomInclude>
102               </pomIncludes>
103               <postBuildHookScript>verify</postBuildHookScript>
104               <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
105               <settingsFile>src/it/settings.xml</settingsFile>
106               <goals>
107                 <goal>clean</goal>
108                 <goal>test-compile</goal>
109               </goals>
110             </configuration>
111             <executions>
112               <execution>
113                 <id>integration-test</id>
114                 <goals>
115                   <goal>install</goal>
116                   <goal>integration-test</goal>
117                   <goal>verify</goal>
118                 </goals>
119               </execution>
120             </executions>
121           </plugin>
122         </plugins>
123
124       </build>
125     </profile>
126   </profiles>
127 </project>