Merge "Fix compilation warnings: replace deprecated org.apache.felix classes"
[controller.git] / karaf / opendaylight-karaf-empty / 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     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.5.0-SNAPSHOT</version>
8     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>opendaylight-karaf-empty</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15
16   <dependencies>
17     <dependency>
18       <!-- scope is compile so all features (there is only one) are installed
19             into startup.properties and the feature repo itself is not installed -->
20       <groupId>org.apache.karaf.features</groupId>
21       <artifactId>framework</artifactId>
22       <version>${karaf.version}</version>
23       <type>kar</type>
24     </dependency>
25     <!-- scope is runtime so the feature repo is listed in the features
26       service config file, and features may be installed using the
27       karaf-maven-plugin configuration -->
28     <dependency>
29       <groupId>org.apache.karaf.features</groupId>
30       <artifactId>standard</artifactId>
31       <version>${karaf.version}</version>
32       <classifier>features</classifier>
33       <type>xml</type>
34       <scope>runtime</scope>
35     </dependency>
36
37     <!-- ODL Branding -->
38     <dependency>
39       <groupId>org.opendaylight.controller</groupId>
40       <artifactId>karaf.branding</artifactId>
41       <scope>compile</scope>
42     </dependency>
43
44     <!-- Resources needed -->
45     <dependency>
46       <groupId>org.opendaylight.controller</groupId>
47       <artifactId>opendaylight-karaf-resources</artifactId>
48       <version>${project.version}</version>
49     </dependency>
50   </dependencies>
51
52   <build>
53     <pluginManagement>
54       <plugins>
55         <plugin>
56           <groupId>org.eclipse.m2e</groupId>
57           <artifactId>lifecycle-mapping</artifactId>
58           <version>1.0.0</version>
59           <configuration>
60             <lifecycleMappingMetadata>
61               <pluginExecutions>
62                 <pluginExecution>
63                   <pluginExecutionFilter>
64                     <groupId>org.apache.felix</groupId>
65                     <artifactId>maven-bundle-plugin</artifactId>
66                     <versionRange>[0,)</versionRange>
67                     <goals>
68                       <goal>cleanVersions</goal>
69                     </goals>
70                   </pluginExecutionFilter>
71                   <action>
72                     <ignore></ignore>
73                   </action>
74                 </pluginExecution>
75                 <pluginExecution>
76                   <pluginExecutionFilter>
77                     <groupId>org.apache.maven.plugins</groupId>
78                     <artifactId>maven-dependency-plugin</artifactId>
79                     <versionRange>[0,)</versionRange>
80                     <goals>
81                       <goal>copy</goal>
82                       <goal>unpack</goal>
83                     </goals>
84                   </pluginExecutionFilter>
85                   <action>
86                     <ignore></ignore>
87                   </action>
88                 </pluginExecution>
89                 <pluginExecution>
90                   <pluginExecutionFilter>
91                     <groupId>org.apache.karaf.tooling</groupId>
92                     <artifactId>karaf-maven-plugin</artifactId>
93                     <versionRange>[0,)</versionRange>
94                     <goals>
95                       <goal>commands-generate-help</goal>
96                     </goals>
97                   </pluginExecutionFilter>
98                   <action>
99                     <ignore></ignore>
100                   </action>
101                 </pluginExecution>
102                 <pluginExecution>
103                   <pluginExecutionFilter>
104                     <groupId>org.fusesource.scalate</groupId>
105                     <artifactId>maven-scalate-plugin</artifactId>
106                     <versionRange>[0,)</versionRange>
107                     <goals>
108                       <goal>sitegen</goal>
109                     </goals>
110                   </pluginExecutionFilter>
111                   <action>
112                     <ignore></ignore>
113                   </action>
114                 </pluginExecution>
115                 <pluginExecution>
116                   <pluginExecutionFilter>
117                     <groupId>org.apache.servicemix.tooling</groupId>
118                     <artifactId>depends-maven-plugin</artifactId>
119                     <versionRange>[0,)</versionRange>
120                     <goals>
121                       <goal>generate-depends-file</goal>
122                     </goals>
123                   </pluginExecutionFilter>
124                   <action>
125                     <ignore></ignore>
126                   </action>
127                 </pluginExecution>
128               </pluginExecutions>
129             </lifecycleMappingMetadata>
130           </configuration>
131         </plugin>
132       </plugins>
133     </pluginManagement>
134     <plugins>
135       <plugin>
136         <groupId>org.apache.karaf.tooling</groupId>
137         <artifactId>karaf-maven-plugin</artifactId>
138         <version>${karaf.version}</version>
139         <extensions>true</extensions>
140         <executions>
141           <execution>
142             <id>process-resources</id>
143             <goals>
144               <goal>install-kars</goal>
145             </goals>
146             <phase>process-resources</phase>
147           </execution>
148           <execution>
149             <id>package</id>
150             <goals>
151               <goal>instance-create-archive</goal>
152             </goals>
153           </execution>
154         </executions>
155       </plugin>
156       <plugin>
157         <groupId>org.apache.maven.plugins</groupId>
158         <artifactId>maven-checkstyle-plugin</artifactId>
159         <configuration>
160           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
161         </configuration>
162       </plugin>
163       <plugin>
164         <groupId>org.apache.maven.plugins</groupId>
165         <artifactId>maven-dependency-plugin</artifactId>
166         <version>2.6</version>
167         <executions>
168           <execution>
169             <id>copy</id>
170             <goals>
171               <goal>copy</goal>
172             </goals>
173             <!-- here the phase you need -->
174             <phase>generate-resources</phase>
175             <configuration>
176               <artifactItems>
177                 <artifactItem>
178                   <groupId>org.opendaylight.controller</groupId>
179                   <artifactId>karaf.branding</artifactId>
180                   <version>${karaf.branding.version}</version>
181                   <outputDirectory>target/assembly/lib</outputDirectory>
182                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
183                 </artifactItem>
184               </artifactItems>
185             </configuration>
186           </execution>
187           <execution>
188             <id>unpack-karaf-resources</id>
189             <goals>
190               <goal>unpack-dependencies</goal>
191             </goals>
192             <phase>prepare-package</phase>
193             <configuration>
194              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
195              <groupId>org.opendaylight.controller</groupId>
196              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
197              <excludes>META-INF\/**</excludes>
198              <excludeTransitive>true</excludeTransitive>
199              <ignorePermissions>false</ignorePermissions>
200             </configuration>
201           </execution>
202         </executions>
203       </plugin>
204       <plugin>
205         <groupId>org.apache.maven.plugins</groupId>
206         <artifactId>maven-antrun-plugin</artifactId>
207         <executions>
208             <execution>
209                 <phase>prepare-package</phase>
210                 <goals>
211                     <goal>run</goal>
212                 </goals>
213                 <configuration>
214                   <tasks>
215                     <chmod perm="755">
216                         <fileset dir="${project.build.directory}/assembly/bin">
217                           <include name="karaf"/>
218                           <include name="instance"/>
219                         </fileset>
220                     </chmod>
221                   </tasks>
222                 </configuration>
223             </execution>
224         </executions>
225       </plugin>
226     </plugins>
227   </build>
228   <scm>
229     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
230     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
231     <tag>HEAD</tag>
232     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
233   </scm>
234 </project>