blob: 2e476fa59b6614803bae521caf854b51e9c39f2c [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 Ziegelera1ac61f2008-01-12 18:53:45 +000032 <version>1.0.3-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 Ziegelera1ac61f2008-01-12 18:53:45 +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>
Stefano Lenzi476013d2007-09-21 23:59:54 +000097 <module>../maven-obr-plugin</module>
Stuart McCulloch285fcc22007-09-24 19:54:42 +000098 <module>../bundleplugin</module>
Carsten Ziegelerf0cde292007-08-20 07:37:44 +000099 <module>../scrplugin</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000100 <module>../tools/maven2/maven-osgi-plugin</module>
Karl Pauls58915962008-04-21 18:32:56 +0000101<!-- <module>../tools/maven2/maven-felix-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>
Felix Meschbergere6c00cd2008-08-19 13:22:01 +0000137 <module>../shell.remote</module>
Stuart McCulloch00f1f922007-09-24 20:02:41 +0000138 <module>../org.osgi.service.obr</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000139 <module>../bundlerepository</module>
140 <module>../log</module>
141 <module>../eventadmin</module>
142 <module>../http.jetty</module>
Francesco Furfari91ce1232007-12-27 12:38:09 +0000143 <module>../upnp</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000144 <module>../scr</module>
145 <module>../configadmin</module>
146 <module>../metatype</module>
147 <module>../dependencymanager</module>
Stefano Lenzi17d31382008-03-05 08:21:06 +0000148 <module>../deploymentadmin</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000149 <module>../servicebinder</module>
150 <module>../wireadmin</module>
Carsten Ziegeler41c255e2007-07-30 13:06:38 +0000151 <module>../prefs</module>
Felix Meschberger283cf4e2008-05-16 13:58:09 +0000152 <module>../webconsole</module>
Richard S. Hall8c011c62007-04-17 14:31:35 +0000153
Clement Escoffierb5715b12007-09-25 14:29:52 +0000154 <module>../ipojo</module>
Marcel Offermans61791862007-07-23 17:35:55 +0000155
Karl Pauls0a3858c2007-07-13 22:03:31 +0000156 <module>../mosgi</module>
Felix Meschbergerfe090f82007-09-20 14:03:22 +0000157 <module>../jmood</module>
Richard S. Hall02496082007-08-23 15:29:20 +0000158
159 <module>../examples</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000160 </modules>
161 </profile>
162
163 <profile>
164 <id>packaging-osgi-bundle</id>
165 <activation>
166 <property>
167 <name>packaging</name>
168 <value>osgi-bundle</value>
169 </property>
170 </activation>
171 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +0000172 <module>../org.apache.felix.daemon</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000173
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000174 <!-- <module>tools/mangen</module> -->
175
Richard S. Hall8c011c62007-04-17 14:31:35 +0000176
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000177 </modules>
178 </profile>
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000179 <profile>
180 <id>release</id>
181 <build>
182 <plugins>
183 <plugin>
184 <groupId>org.apache.maven.plugins</groupId>
185 <artifactId>maven-gpg-plugin</artifactId>
186 <executions>
187 <execution>
188 <id>sign-artifacts</id>
189 <phase>verify</phase>
190 <goals>
191 <goal>sign</goal>
192 </goals>
193 </execution>
194 </executions>
195 </plugin>
196 <plugin>
197 <groupId>org.apache.maven.plugins</groupId>
198 <artifactId>maven-assembly-plugin</artifactId>
199 <configuration>
200 <descriptorRefs>
201 <descriptorRef>bin</descriptorRef>
202 <descriptorRef>project</descriptorRef>
203 </descriptorRefs>
204 </configuration>
205 <executions>
206 <execution>
207 <id>make-assembly</id>
208 <phase>package</phase>
209 <goals>
210 <goal>attached</goal>
211 </goals>
212 </execution>
213 </executions>
214 </plugin>
215 </plugins>
216 </build>
217 </profile>
Stephane Frenotab672472006-08-29 13:29:31 +0000218 </profiles>
219
Karl Paulsd69e8af2006-08-12 09:51:20 +0000220 <distributionManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000221 <site>
222 <id>felix website</id>
Marcel Offermansf6737032006-08-17 19:49:13 +0000223 <url>file:///${user.dir}/target/site-deployed/</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000224 </site>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000225 <repository>
Carsten Ziegeler769d0cb2007-12-28 15:28:17 +0000226 <id>apache.releases</id>
227 <name>Apache Release Distribution Repository</name>
228 <url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000229 </repository>
230 </distributionManagement>
231
232 <pluginRepositories>
233 <pluginRepository>
234 <id>apache.snapshots</id>
235 <name>snapshot plugins</name>
236 <url>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000237 http://people.apache.org/repo/m2-snapshot-repository
Karl Paulsd69e8af2006-08-12 09:51:20 +0000238 </url>
Richard S. Halla897e0e2007-02-13 05:55:13 +0000239 <releases>
240 <enabled>false</enabled>
241 </releases>
242 <snapshots>
243 <enabled>true</enabled>
244 </snapshots>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000245 </pluginRepository>
246 </pluginRepositories>
247
248 <!-- definitions for testing -->
249 <dependencies>
250 <dependency>
251 <groupId>junit</groupId>
252 <artifactId>junit</artifactId>
253 <version>3.8.1</version>
254 <scope>test</scope>
255 </dependency>
256 <dependency>
257 <groupId>easymock</groupId>
258 <artifactId>easymock</artifactId>
259 <version>1.2_Java1.3</version>
260 <scope>test</scope>
261 </dependency>
262 </dependencies>
263 <build>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000264 <pluginManagement>
265 <plugins>
266 <plugin>
267 <groupId>org.apache.maven.plugins</groupId>
268 <artifactId>maven-compiler-plugin</artifactId>
269 <version>2.0.2</version>
270 </plugin>
271 <plugin>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-surefire-plugin</artifactId>
274 <version>2.3</version>
275 </plugin>
276 <plugin>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-jar-plugin</artifactId>
279 <version>2.1</version>
280 </plugin>
281 <plugin>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-plugin-plugin</artifactId>
284 <version>2.3</version>
285 </plugin>
286 <plugin>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-install-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000289 <version>2.2</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000290 </plugin>
291 <plugin>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-deploy-plugin</artifactId>
294 <version>2.3</version>
295 </plugin>
296 <plugin>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-site-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000299 <version>2.0-beta-6</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000300 </plugin>
301 <plugin>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-project-info-reports-plugin</artifactId>
304 <version>2.0.1</version>
305 </plugin>
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-jxr-plugin</artifactId>
309 <version>2.1</version>
310 </plugin>
311 <plugin>
312 <groupId>org.apache.maven.plugins</groupId>
313 <artifactId>maven-surefire-report-plugin</artifactId>
314 <version>2.3</version>
315 </plugin>
316 <plugin>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-javadoc-plugin</artifactId>
Stefano Lenziebbda942008-06-12 22:02:24 +0000319 <version>2.4</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000320 </plugin>
Karl Pauls0a3858c2007-07-13 22:03:31 +0000321<!-- <plugin>
Carsten Ziegeler97646542007-07-04 17:03:06 +0000322 <groupId>org.apache.felix</groupId>
323 <artifactId>maven-bundle-plugin</artifactId>
Karl Pauls0a3858c2007-07-13 22:03:31 +0000324 <version>1.1.0-SNAPSHOT</version>
325 </plugin> -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000326<!-- <plugin>
327 <groupId>org.apache.maven.plugins</groupId>
328 <artifactId>maven-remote-resources-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000329 <version>1.0-alpha-6</version>
Karl Pauls589e2b32007-07-11 18:29:29 +0000330 </plugin> -->
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000331 <plugin>
332 <groupId>org.apache.maven.plugins</groupId>
333 <artifactId>maven-release-plugin</artifactId>
334 <version>2.0-beta-7</version>
335 </plugin>
336 <plugin>
337 <groupId>org.apache.maven.plugins</groupId>
338 <artifactId>maven-gpg-plugin</artifactId>
339 <version>1.0-alpha-4</version>
340 </plugin>
341 <plugin>
342 <groupId>org.apache.maven.plugins</groupId>
343 <artifactId>maven-assembly-plugin</artifactId>
344 <version>2.2-beta-1</version>
345 </plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000346 </plugins>
347 </pluginManagement>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000348 <plugins>
349 <plugin>
350 <groupId>org.apache.maven.plugins</groupId>
351 <artifactId>maven-compiler-plugin</artifactId>
352 <configuration>
Stuart McCulloch98f7c402007-09-21 03:38:03 +0000353 <target>1.3</target>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000354 </configuration>
355 </plugin>
356 <plugin>
357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-surefire-plugin</artifactId>
359 </plugin>
Stephane Frenotab672472006-08-29 13:29:31 +0000360 <!-- plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000361 <groupId>org.apache.maven.plugins</groupId>
362 <artifactId>maven-surefire-report-plugin</artifactId>
Stephane Frenotab672472006-08-29 13:29:31 +0000363 </plugin -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000364 <!-- We want to package up license resources in the JARs produced
365 <plugin>
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-remote-resources-plugin</artifactId>
368 <executions>
369 <execution>
370 <goals>
371 <goal>process</goal>
372 </goals>
373 <configuration>
374 <resourceBundles>
375 <resourceBundle>org.apache:apache-jar-resource-bundle:1.0</resourceBundle>
376 </resourceBundles>
377 </configuration>
378 </execution>
379 </executions>
380 </plugin>-->
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000381 <plugin>
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-release-plugin</artifactId>
384 <configuration>
385 <tagBase>https://svn.apache.org/repos/asf/felix/releases</tagBase>
386 <useReleaseProfile>false</useReleaseProfile>
387 <goals>deploy</goals>
388 </configuration>
389 </plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000390 </plugins>
Carsten Ziegelerc7a70c22007-12-20 09:30:29 +0000391 <resources>
392 <resource>
393 <directory>src/main/resources</directory>
394 </resource>
395 <resource>
396 <directory>.</directory>
397 <targetPath>META-INF</targetPath>
398 <includes>
Carsten Ziegeler80794822008-01-07 16:15:52 +0000399 <include>LICENSE*</include>
400 <include>NOTICE*</include>
Carsten Ziegelerc7a70c22007-12-20 09:30:29 +0000401 </includes>
402 </resource>
403 </resources>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000404 </build>
405 <reporting>
406 <plugins>
407 <plugin>
408 <groupId>org.apache.maven.plugins</groupId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000409 <artifactId>maven-site-plugin</artifactId>
410 <configuration>
Marcel Offermans5dcb02c2006-08-17 20:58:34 +0000411 <templateDirectory>${user.dir}/src/site/</templateDirectory>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000412 <template>maven-site.vm</template>
413 </configuration>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000414 </plugin>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000415 <plugin>
416 <groupId>org.apache.maven.plugins</groupId>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000417 <artifactId>maven-surefire-report-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000418 </plugin>
419 <plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-jxr-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000422 </plugin>
423 <plugin>
424 <groupId>org.apache.maven.plugins</groupId>
425 <artifactId>maven-project-info-reports-plugin</artifactId>
426 <reportSets>
427 <reportSet>
428 <reports>
429 <report>index</report>
430 <report>dependencies</report>
431 <report>project-team</report>
432 <report>mailing-list</report>
433 <report>issue-tracking</report>
434 <report>license</report>
435 <report>scm</report>
436 </reports>
437 </reportSet>
438 </reportSets>
439 </plugin>
440 <!--plugin>
441 <groupId>org.apache.maven.plugins</groupId>
442 <artifactId>maven-javadoc-plugin</artifactId>
443 <configuration>
444 <aggregate>true</aggregate>
445 </configuration>
446 </plugin-->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000447 </plugins>
448 </reporting>
Stuart McCulloch756832e2008-02-10 17:37:50 +0000449</project>