blob: 533ab5f0f3955947411afe5d010ce52270282246 [file] [log] [blame]
Carsten Ziegeler46892482007-12-28 15:44:49 +00001<!--
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18-->
Carsten Ziegelerbdf1a002007-12-28 15:31:02 +000019<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/maven-v4_0_0.xsd">
Karl Paulsd69e8af2006-08-12 09:51:20 +000020 <modelVersion>4.0.0</modelVersion>
Michael E. Rodriguez406386d2007-03-20 02:56:45 +000021
22 <parent>
23 <groupId>org.apache</groupId>
24 <artifactId>apache</artifactId>
25 <version>4</version>
26 </parent>
27
Karl Paulsd69e8af2006-08-12 09:51:20 +000028 <groupId>org.apache.felix</groupId>
29 <artifactId>felix</artifactId>
30 <packaging>pom</packaging>
Marcel Offermans0ed87292006-08-17 19:10:30 +000031 <name>Apache Felix</name>
Carsten Ziegeler46892482007-12-28 15:44:49 +000032 <version>1.0.2-SNAPSHOT</version>
Richard S. Hall1764f302007-06-18 20:50:24 +000033 <url>http://felix.apache.org/</url>
Karl Pauls589e2b32007-07-11 18:29:29 +000034 <inceptionYear>2006</inceptionYear>
Marcel Offermans0ed87292006-08-17 19:10:30 +000035 <description>Apache felix is an OSGi implementation.</description>
36
37 <issueManagement>
38 <system>Jira</system>
39 <url>http://issues.apache.org/jira/browse/FELIX</url>
Richard S. Hall1ca96a92007-02-12 15:46:10 +000040 </issueManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +000041
42 <mailingLists>
43 <mailingList>
44 <name>Felix Dev</name>
Richard S. Hall1764f302007-06-18 20:50:24 +000045 <subscribe>dev-subscribe@felix.apache.org</subscribe>
46 <unsubscribe>dev-unsubscribe@felix.apache.org</unsubscribe>
Marcel Offermans0ed87292006-08-17 19:10:30 +000047 <post>-</post>
Richard S. Hall1764f302007-06-18 20:50:24 +000048 <archive>http://www.mail-archive.com/dev%40felix.apache.org/</archive>
Marcel Offermans0ed87292006-08-17 19:10:30 +000049 </mailingList>
50 <mailingList>
51 <name>Felix Commits</name>
Richard S. Hall1764f302007-06-18 20:50:24 +000052 <subscribe>commits-subscribe@felix.apache.org</subscribe>
53 <unsubscribe>commits-unsubscribe@felix.apache.org</unsubscribe>
Marcel Offermans0ed87292006-08-17 19:10:30 +000054 <post>-</post>
Richard S. Hall1764f302007-06-18 20:50:24 +000055 <archive>http://www.mail-archive.com/commits%40felix.apache.org/</archive>
Marcel Offermans0ed87292006-08-17 19:10:30 +000056 </mailingList>
57 </mailingLists>
58
Marcel Offermans0ed87292006-08-17 19:10:30 +000059 <scm>
Carsten Ziegeler81ee6d82007-12-28 15:31:13 +000060 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk</connection>
61 <developerConnection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk</developerConnection>
62 <url>http://svn.apache.org/viewvc/felix/trunk/?root=Apache-SVN</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +000063 </scm>
Karl Paulsd69e8af2006-08-12 09:51:20 +000064
Richard S. Hall1ca96a92007-02-12 15:46:10 +000065 <!--
66 Felix contains 3 custom maven packaging plugins. Each creates a jar file
67 as an artifact.
68
Richard S. Hall797bc982007-05-21 18:35:07 +000069 maven-bundle-plugin
Richard S. Hall1ca96a92007-02-12 15:46:10 +000070 (bundle packaging - latest prefered plugin for generating OSGi bundles.)
71 maven-osgi-plugin
72 (osgi-bundle packaging - old plugin for generating OSGi bundles.)
73 org.apache.felix.ipojo.plugin
74 (plugin for generating iPOJO OSGi bundles.)
75
76 But with maven bug https://issues.apache.org/jira/browse/FELIX-198 files
77 are not always created with the correct extension in the repository.
Karl Paulsd69e8af2006-08-12 09:51:20 +000078
Richard S. Hall1ca96a92007-02-12 15:46:10 +000079 As a work around, this pom creates different profiles for building the
80 different types of felix modules.
Stephane Frenotab672472006-08-29 13:29:31 +000081
Richard S. Hall1ca96a92007-02-12 15:46:10 +000082 Usage:
83 mvn -Dpackaging=<type> clean install
84 -->
Karl Paulsd69e8af2006-08-12 09:51:20 +000085
Stephane Frenotab672472006-08-29 13:29:31 +000086 <profiles>
Richard S. Hall1ca96a92007-02-12 15:46:10 +000087
Stephane Frenotab672472006-08-29 13:29:31 +000088 <profile>
Richard S. Hall430f3352007-03-28 14:27:28 +000089 <id>packaging-plugins</id>
90 <activation>
91 <property>
92 <name>packaging</name>
93 <value>plugins</value>
94 </property>
95 </activation>
96 <modules>
Stuart McCulloch285fcc22007-09-24 19:54:42 +000097 <module>../org.osgi.service.obr</module>
Stefano Lenzi476013d2007-09-21 23:59:54 +000098 <module>../maven-obr-plugin</module>
Stuart McCulloch285fcc22007-09-24 19:54:42 +000099 <module>../bundleplugin</module>
Carsten Ziegelerf0cde292007-08-20 07:37:44 +0000100 <module>../scrplugin</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000101 <module>../tools/maven2/maven-osgi-plugin</module>
Richard S. Hall430f3352007-03-28 14:27:28 +0000102 </modules>
103 </profile>
104
105 <profile>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000106 <id>packaging-ipojo-bundle</id>
Stephane Frenotab672472006-08-29 13:29:31 +0000107 <activation>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000108 <property>
109 <name>packaging</name>
110 <value>ipojo-bundle</value>
111 </property>
112 </activation>
113 <modules>
Clement Escoffierace86c52007-06-24 17:44:53 +0000114 <!--<module>ipojo/arch</module>-->
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000115 </modules>
116 </profile>
117
118 <profile>
119 <id>packaging-bundle</id>
120 <activation>
121 <property>
122 <name>packaging</name>
123 <value>bundle</value>
124 </property>
125 </activation>
Francesco Furfari91ce1232007-12-27 12:38:09 +0000126 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +0000127 <module>../org.osgi.foundation</module>
128 <module>../javax.servlet</module>
129 <module>../org.osgi.core</module>
130 <module>../org.osgi.compendium</module>
131 <module>../framework</module>
132 <module>../main</module>
133 <module>../shell</module>
134 <module>../shell.tui</module>
135 <module>../shell.gui</module>
136 <module>../shell.gui.plugin</module>
Stuart McCulloch00f1f922007-09-24 20:02:41 +0000137 <module>../org.osgi.service.obr</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000138 <module>../bundlerepository</module>
139 <module>../log</module>
140 <module>../eventadmin</module>
141 <module>../http.jetty</module>
Francesco Furfari91ce1232007-12-27 12:38:09 +0000142 <module>../upnp</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000143 <module>../scr</module>
144 <module>../configadmin</module>
145 <module>../metatype</module>
146 <module>../dependencymanager</module>
147 <module>../servicebinder</module>
148 <module>../wireadmin</module>
Carsten Ziegeler41c255e2007-07-30 13:06:38 +0000149 <module>../prefs</module>
Richard S. Hall8c011c62007-04-17 14:31:35 +0000150
Clement Escoffierb5715b12007-09-25 14:29:52 +0000151 <module>../ipojo</module>
Marcel Offermans61791862007-07-23 17:35:55 +0000152
Karl Pauls0a3858c2007-07-13 22:03:31 +0000153 <module>../mosgi</module>
Felix Meschbergerfe090f82007-09-20 14:03:22 +0000154 <module>../jmood</module>
Richard S. Hall02496082007-08-23 15:29:20 +0000155
156 <module>../examples</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000157 </modules>
158 </profile>
159
160 <profile>
161 <id>packaging-osgi-bundle</id>
162 <activation>
163 <property>
164 <name>packaging</name>
165 <value>osgi-bundle</value>
166 </property>
167 </activation>
168 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +0000169 <module>../org.apache.felix.daemon</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000170
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000171 <!-- <module>tools/mangen</module> -->
172
Richard S. Hall8c011c62007-04-17 14:31:35 +0000173
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000174 </modules>
175 </profile>
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000176 <profile>
177 <id>release</id>
178 <build>
179 <plugins>
180 <plugin>
181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-gpg-plugin</artifactId>
183 <executions>
184 <execution>
185 <id>sign-artifacts</id>
186 <phase>verify</phase>
187 <goals>
188 <goal>sign</goal>
189 </goals>
190 </execution>
191 </executions>
192 </plugin>
193 <plugin>
194 <groupId>org.apache.maven.plugins</groupId>
195 <artifactId>maven-assembly-plugin</artifactId>
196 <configuration>
197 <descriptorRefs>
198 <descriptorRef>bin</descriptorRef>
199 <descriptorRef>project</descriptorRef>
200 </descriptorRefs>
201 </configuration>
202 <executions>
203 <execution>
204 <id>make-assembly</id>
205 <phase>package</phase>
206 <goals>
207 <goal>attached</goal>
208 </goals>
209 </execution>
210 </executions>
211 </plugin>
212 </plugins>
213 </build>
214 </profile>
Stephane Frenotab672472006-08-29 13:29:31 +0000215 </profiles>
216
Karl Paulsd69e8af2006-08-12 09:51:20 +0000217 <distributionManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000218 <site>
219 <id>felix website</id>
Marcel Offermansf6737032006-08-17 19:49:13 +0000220 <url>file:///${user.dir}/target/site-deployed/</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000221 </site>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000222 <repository>
Carsten Ziegeler769d0cb2007-12-28 15:28:17 +0000223 <id>apache.releases</id>
224 <name>Apache Release Distribution Repository</name>
225 <url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000226 </repository>
227 </distributionManagement>
228
229 <pluginRepositories>
230 <pluginRepository>
231 <id>apache.snapshots</id>
232 <name>snapshot plugins</name>
233 <url>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000234 http://people.apache.org/repo/m2-snapshot-repository
Karl Paulsd69e8af2006-08-12 09:51:20 +0000235 </url>
Richard S. Halla897e0e2007-02-13 05:55:13 +0000236 <releases>
237 <enabled>false</enabled>
238 </releases>
239 <snapshots>
240 <enabled>true</enabled>
241 </snapshots>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000242 </pluginRepository>
243 </pluginRepositories>
244
245 <!-- definitions for testing -->
246 <dependencies>
247 <dependency>
248 <groupId>junit</groupId>
249 <artifactId>junit</artifactId>
250 <version>3.8.1</version>
251 <scope>test</scope>
252 </dependency>
253 <dependency>
254 <groupId>easymock</groupId>
255 <artifactId>easymock</artifactId>
256 <version>1.2_Java1.3</version>
257 <scope>test</scope>
258 </dependency>
259 </dependencies>
260 <build>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000261 <pluginManagement>
262 <plugins>
263 <plugin>
264 <groupId>org.apache.maven.plugins</groupId>
265 <artifactId>maven-compiler-plugin</artifactId>
266 <version>2.0.2</version>
267 </plugin>
268 <plugin>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-surefire-plugin</artifactId>
271 <version>2.3</version>
272 </plugin>
273 <plugin>
274 <groupId>org.apache.maven.plugins</groupId>
275 <artifactId>maven-jar-plugin</artifactId>
276 <version>2.1</version>
277 </plugin>
278 <plugin>
279 <groupId>org.apache.maven.plugins</groupId>
280 <artifactId>maven-plugin-plugin</artifactId>
281 <version>2.3</version>
282 </plugin>
283 <plugin>
284 <groupId>org.apache.maven.plugins</groupId>
285 <artifactId>maven-install-plugin</artifactId>
286 <version>2.1</version>
287 </plugin>
288 <plugin>
289 <groupId>org.apache.maven.plugins</groupId>
290 <artifactId>maven-deploy-plugin</artifactId>
291 <version>2.3</version>
292 </plugin>
293 <plugin>
294 <groupId>org.apache.maven.plugins</groupId>
295 <artifactId>maven-site-plugin</artifactId>
296 <version>2.0-beta-5</version>
297 </plugin>
298 <plugin>
299 <groupId>org.apache.maven.plugins</groupId>
300 <artifactId>maven-project-info-reports-plugin</artifactId>
301 <version>2.0.1</version>
302 </plugin>
303 <plugin>
304 <groupId>org.apache.maven.plugins</groupId>
305 <artifactId>maven-jxr-plugin</artifactId>
306 <version>2.1</version>
307 </plugin>
308 <plugin>
309 <groupId>org.apache.maven.plugins</groupId>
310 <artifactId>maven-surefire-report-plugin</artifactId>
311 <version>2.3</version>
312 </plugin>
313 <plugin>
314 <groupId>org.apache.maven.plugins</groupId>
315 <artifactId>maven-javadoc-plugin</artifactId>
316 <version>2.2</version>
317 </plugin>
Karl Pauls0a3858c2007-07-13 22:03:31 +0000318<!-- <plugin>
Carsten Ziegeler97646542007-07-04 17:03:06 +0000319 <groupId>org.apache.felix</groupId>
320 <artifactId>maven-bundle-plugin</artifactId>
Karl Pauls0a3858c2007-07-13 22:03:31 +0000321 <version>1.1.0-SNAPSHOT</version>
322 </plugin> -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000323<!-- <plugin>
324 <groupId>org.apache.maven.plugins</groupId>
325 <artifactId>maven-remote-resources-plugin</artifactId>
326 <version>1.0-alpha-5</version>
327 </plugin> -->
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000328 <plugin>
329 <groupId>org.apache.maven.plugins</groupId>
330 <artifactId>maven-release-plugin</artifactId>
331 <version>2.0-beta-7</version>
332 </plugin>
333 <plugin>
334 <groupId>org.apache.maven.plugins</groupId>
335 <artifactId>maven-gpg-plugin</artifactId>
336 <version>1.0-alpha-4</version>
337 </plugin>
338 <plugin>
339 <groupId>org.apache.maven.plugins</groupId>
340 <artifactId>maven-assembly-plugin</artifactId>
341 <version>2.2-beta-1</version>
342 </plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000343 </plugins>
344 </pluginManagement>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000345 <plugins>
346 <plugin>
347 <groupId>org.apache.maven.plugins</groupId>
348 <artifactId>maven-compiler-plugin</artifactId>
349 <configuration>
Stuart McCulloch98f7c402007-09-21 03:38:03 +0000350 <target>1.3</target>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000351 </configuration>
352 </plugin>
353 <plugin>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-surefire-plugin</artifactId>
356 </plugin>
Stephane Frenotab672472006-08-29 13:29:31 +0000357 <!-- plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000358 <groupId>org.apache.maven.plugins</groupId>
359 <artifactId>maven-surefire-report-plugin</artifactId>
Stephane Frenotab672472006-08-29 13:29:31 +0000360 </plugin -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000361 <!-- We want to package up license resources in the JARs produced
362 <plugin>
363 <groupId>org.apache.maven.plugins</groupId>
364 <artifactId>maven-remote-resources-plugin</artifactId>
365 <executions>
366 <execution>
367 <goals>
368 <goal>process</goal>
369 </goals>
370 <configuration>
371 <resourceBundles>
372 <resourceBundle>org.apache:apache-jar-resource-bundle:1.0</resourceBundle>
373 </resourceBundles>
374 </configuration>
375 </execution>
376 </executions>
377 </plugin>-->
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000378 <plugin>
379 <groupId>org.apache.maven.plugins</groupId>
380 <artifactId>maven-release-plugin</artifactId>
381 <configuration>
382 <tagBase>https://svn.apache.org/repos/asf/felix/releases</tagBase>
383 <useReleaseProfile>false</useReleaseProfile>
384 <goals>deploy</goals>
385 </configuration>
386 </plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000387 </plugins>
Carsten Ziegelerc7a70c22007-12-20 09:30:29 +0000388 <resources>
389 <resource>
390 <directory>src/main/resources</directory>
391 </resource>
392 <resource>
393 <directory>.</directory>
394 <targetPath>META-INF</targetPath>
395 <includes>
396 <include>LICENSE</include>
397 <include>NOTICE</include>
398 </includes>
399 </resource>
400 </resources>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000401 </build>
402 <reporting>
403 <plugins>
404 <plugin>
405 <groupId>org.apache.maven.plugins</groupId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000406 <artifactId>maven-site-plugin</artifactId>
407 <configuration>
Marcel Offermans5dcb02c2006-08-17 20:58:34 +0000408 <templateDirectory>${user.dir}/src/site/</templateDirectory>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000409 <template>maven-site.vm</template>
410 </configuration>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000411 </plugin>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000412 <plugin>
413 <groupId>org.apache.maven.plugins</groupId>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000414 <artifactId>maven-surefire-report-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000415 </plugin>
416 <plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000417 <groupId>org.apache.maven.plugins</groupId>
418 <artifactId>maven-jxr-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000419 </plugin>
420 <plugin>
421 <groupId>org.apache.maven.plugins</groupId>
422 <artifactId>maven-project-info-reports-plugin</artifactId>
423 <reportSets>
424 <reportSet>
425 <reports>
426 <report>index</report>
427 <report>dependencies</report>
428 <report>project-team</report>
429 <report>mailing-list</report>
430 <report>issue-tracking</report>
431 <report>license</report>
432 <report>scm</report>
433 </reports>
434 </reportSet>
435 </reportSets>
436 </plugin>
437 <!--plugin>
438 <groupId>org.apache.maven.plugins</groupId>
439 <artifactId>maven-javadoc-plugin</artifactId>
440 <configuration>
441 <aggregate>true</aggregate>
442 </configuration>
443 </plugin-->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000444 </plugins>
445 </reporting>
Carsten Ziegelerbdf1a002007-12-28 15:31:02 +0000446</project>