blob: 49f6b5092b14afa1294ec47e22087adf8034609b [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>
Richard S. Hall430f3352007-03-28 14:27:28 +0000101 </modules>
102 </profile>
103
104 <profile>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000105 <id>packaging-ipojo-bundle</id>
Stephane Frenotab672472006-08-29 13:29:31 +0000106 <activation>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000107 <property>
108 <name>packaging</name>
109 <value>ipojo-bundle</value>
110 </property>
111 </activation>
112 <modules>
Clement Escoffierace86c52007-06-24 17:44:53 +0000113 <!--<module>ipojo/arch</module>-->
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000114 </modules>
115 </profile>
116
117 <profile>
118 <id>packaging-bundle</id>
119 <activation>
120 <property>
121 <name>packaging</name>
122 <value>bundle</value>
123 </property>
124 </activation>
Francesco Furfari91ce1232007-12-27 12:38:09 +0000125 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +0000126 <module>../org.osgi.foundation</module>
127 <module>../javax.servlet</module>
128 <module>../org.osgi.core</module>
129 <module>../org.osgi.compendium</module>
130 <module>../framework</module>
131 <module>../main</module>
132 <module>../shell</module>
133 <module>../shell.tui</module>
134 <module>../shell.gui</module>
135 <module>../shell.gui.plugin</module>
Stuart McCulloch00f1f922007-09-24 20:02:41 +0000136 <module>../org.osgi.service.obr</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000137 <module>../bundlerepository</module>
138 <module>../log</module>
139 <module>../eventadmin</module>
140 <module>../http.jetty</module>
Francesco Furfari91ce1232007-12-27 12:38:09 +0000141 <module>../upnp</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000142 <module>../scr</module>
143 <module>../configadmin</module>
144 <module>../metatype</module>
145 <module>../dependencymanager</module>
146 <module>../servicebinder</module>
147 <module>../wireadmin</module>
Carsten Ziegeler41c255e2007-07-30 13:06:38 +0000148 <module>../prefs</module>
Richard S. Hall8c011c62007-04-17 14:31:35 +0000149
Clement Escoffierb5715b12007-09-25 14:29:52 +0000150 <module>../ipojo</module>
Marcel Offermans61791862007-07-23 17:35:55 +0000151
Karl Pauls0a3858c2007-07-13 22:03:31 +0000152 <module>../mosgi</module>
Felix Meschbergerfe090f82007-09-20 14:03:22 +0000153 <module>../jmood</module>
Richard S. Hall02496082007-08-23 15:29:20 +0000154
155 <module>../examples</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000156 </modules>
157 </profile>
158
159 <profile>
160 <id>packaging-osgi-bundle</id>
161 <activation>
162 <property>
163 <name>packaging</name>
164 <value>osgi-bundle</value>
165 </property>
166 </activation>
167 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +0000168 <module>../org.apache.felix.daemon</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000169
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000170 <!-- <module>tools/mangen</module> -->
171
Richard S. Hall8c011c62007-04-17 14:31:35 +0000172
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000173 </modules>
174 </profile>
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000175 <profile>
176 <id>release</id>
177 <build>
178 <plugins>
179 <plugin>
180 <groupId>org.apache.maven.plugins</groupId>
181 <artifactId>maven-gpg-plugin</artifactId>
182 <executions>
183 <execution>
184 <id>sign-artifacts</id>
185 <phase>verify</phase>
186 <goals>
187 <goal>sign</goal>
188 </goals>
189 </execution>
190 </executions>
191 </plugin>
192 <plugin>
193 <groupId>org.apache.maven.plugins</groupId>
194 <artifactId>maven-assembly-plugin</artifactId>
195 <configuration>
196 <descriptorRefs>
197 <descriptorRef>bin</descriptorRef>
198 <descriptorRef>project</descriptorRef>
199 </descriptorRefs>
200 </configuration>
201 <executions>
202 <execution>
203 <id>make-assembly</id>
204 <phase>package</phase>
205 <goals>
206 <goal>attached</goal>
207 </goals>
208 </execution>
209 </executions>
210 </plugin>
211 </plugins>
212 </build>
213 </profile>
Stephane Frenotab672472006-08-29 13:29:31 +0000214 </profiles>
215
Karl Paulsd69e8af2006-08-12 09:51:20 +0000216 <distributionManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000217 <site>
218 <id>felix website</id>
Marcel Offermansf6737032006-08-17 19:49:13 +0000219 <url>file:///${user.dir}/target/site-deployed/</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000220 </site>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000221 <repository>
Carsten Ziegeler769d0cb2007-12-28 15:28:17 +0000222 <id>apache.releases</id>
223 <name>Apache Release Distribution Repository</name>
224 <url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000225 </repository>
226 </distributionManagement>
227
228 <pluginRepositories>
229 <pluginRepository>
230 <id>apache.snapshots</id>
231 <name>snapshot plugins</name>
232 <url>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000233 http://people.apache.org/repo/m2-snapshot-repository
Karl Paulsd69e8af2006-08-12 09:51:20 +0000234 </url>
Richard S. Halla897e0e2007-02-13 05:55:13 +0000235 <releases>
236 <enabled>false</enabled>
237 </releases>
238 <snapshots>
239 <enabled>true</enabled>
240 </snapshots>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000241 </pluginRepository>
242 </pluginRepositories>
243
244 <!-- definitions for testing -->
245 <dependencies>
246 <dependency>
247 <groupId>junit</groupId>
248 <artifactId>junit</artifactId>
249 <version>3.8.1</version>
250 <scope>test</scope>
251 </dependency>
252 <dependency>
253 <groupId>easymock</groupId>
254 <artifactId>easymock</artifactId>
255 <version>1.2_Java1.3</version>
256 <scope>test</scope>
257 </dependency>
258 </dependencies>
259 <build>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000260 <pluginManagement>
261 <plugins>
262 <plugin>
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-compiler-plugin</artifactId>
265 <version>2.0.2</version>
266 </plugin>
267 <plugin>
268 <groupId>org.apache.maven.plugins</groupId>
269 <artifactId>maven-surefire-plugin</artifactId>
270 <version>2.3</version>
271 </plugin>
272 <plugin>
273 <groupId>org.apache.maven.plugins</groupId>
274 <artifactId>maven-jar-plugin</artifactId>
275 <version>2.1</version>
276 </plugin>
277 <plugin>
278 <groupId>org.apache.maven.plugins</groupId>
279 <artifactId>maven-plugin-plugin</artifactId>
280 <version>2.3</version>
281 </plugin>
282 <plugin>
283 <groupId>org.apache.maven.plugins</groupId>
284 <artifactId>maven-install-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000285 <version>2.2</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000286 </plugin>
287 <plugin>
288 <groupId>org.apache.maven.plugins</groupId>
289 <artifactId>maven-deploy-plugin</artifactId>
290 <version>2.3</version>
291 </plugin>
292 <plugin>
293 <groupId>org.apache.maven.plugins</groupId>
294 <artifactId>maven-site-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000295 <version>2.0-beta-6</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000296 </plugin>
297 <plugin>
298 <groupId>org.apache.maven.plugins</groupId>
299 <artifactId>maven-project-info-reports-plugin</artifactId>
300 <version>2.0.1</version>
301 </plugin>
302 <plugin>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-jxr-plugin</artifactId>
305 <version>2.1</version>
306 </plugin>
307 <plugin>
308 <groupId>org.apache.maven.plugins</groupId>
309 <artifactId>maven-surefire-report-plugin</artifactId>
310 <version>2.3</version>
311 </plugin>
312 <plugin>
313 <groupId>org.apache.maven.plugins</groupId>
314 <artifactId>maven-javadoc-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000315 <version>2.3</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000316 </plugin>
Karl Pauls0a3858c2007-07-13 22:03:31 +0000317<!-- <plugin>
Carsten Ziegeler97646542007-07-04 17:03:06 +0000318 <groupId>org.apache.felix</groupId>
319 <artifactId>maven-bundle-plugin</artifactId>
Karl Pauls0a3858c2007-07-13 22:03:31 +0000320 <version>1.1.0-SNAPSHOT</version>
321 </plugin> -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000322<!-- <plugin>
323 <groupId>org.apache.maven.plugins</groupId>
324 <artifactId>maven-remote-resources-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000325 <version>1.0-alpha-6</version>
Karl Pauls589e2b32007-07-11 18:29:29 +0000326 </plugin> -->
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000327 <plugin>
328 <groupId>org.apache.maven.plugins</groupId>
329 <artifactId>maven-release-plugin</artifactId>
330 <version>2.0-beta-7</version>
331 </plugin>
332 <plugin>
333 <groupId>org.apache.maven.plugins</groupId>
334 <artifactId>maven-gpg-plugin</artifactId>
335 <version>1.0-alpha-4</version>
336 </plugin>
337 <plugin>
338 <groupId>org.apache.maven.plugins</groupId>
339 <artifactId>maven-assembly-plugin</artifactId>
340 <version>2.2-beta-1</version>
341 </plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000342 </plugins>
343 </pluginManagement>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000344 <plugins>
345 <plugin>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-compiler-plugin</artifactId>
348 <configuration>
Stuart McCulloch98f7c402007-09-21 03:38:03 +0000349 <target>1.3</target>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000350 </configuration>
351 </plugin>
352 <plugin>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-surefire-plugin</artifactId>
355 </plugin>
Stephane Frenotab672472006-08-29 13:29:31 +0000356 <!-- plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000357 <groupId>org.apache.maven.plugins</groupId>
358 <artifactId>maven-surefire-report-plugin</artifactId>
Stephane Frenotab672472006-08-29 13:29:31 +0000359 </plugin -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000360 <!-- We want to package up license resources in the JARs produced
361 <plugin>
362 <groupId>org.apache.maven.plugins</groupId>
363 <artifactId>maven-remote-resources-plugin</artifactId>
364 <executions>
365 <execution>
366 <goals>
367 <goal>process</goal>
368 </goals>
369 <configuration>
370 <resourceBundles>
371 <resourceBundle>org.apache:apache-jar-resource-bundle:1.0</resourceBundle>
372 </resourceBundles>
373 </configuration>
374 </execution>
375 </executions>
376 </plugin>-->
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000377 <plugin>
378 <groupId>org.apache.maven.plugins</groupId>
379 <artifactId>maven-release-plugin</artifactId>
380 <configuration>
381 <tagBase>https://svn.apache.org/repos/asf/felix/releases</tagBase>
382 <useReleaseProfile>false</useReleaseProfile>
383 <goals>deploy</goals>
384 </configuration>
385 </plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000386 </plugins>
Carsten Ziegelerc7a70c22007-12-20 09:30:29 +0000387 <resources>
388 <resource>
389 <directory>src/main/resources</directory>
390 </resource>
391 <resource>
392 <directory>.</directory>
393 <targetPath>META-INF</targetPath>
394 <includes>
Carsten Ziegeler80794822008-01-07 16:15:52 +0000395 <include>LICENSE*</include>
396 <include>NOTICE*</include>
Carsten Ziegelerc7a70c22007-12-20 09:30:29 +0000397 </includes>
398 </resource>
399 </resources>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000400 </build>
401 <reporting>
402 <plugins>
403 <plugin>
404 <groupId>org.apache.maven.plugins</groupId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000405 <artifactId>maven-site-plugin</artifactId>
406 <configuration>
Marcel Offermans5dcb02c2006-08-17 20:58:34 +0000407 <templateDirectory>${user.dir}/src/site/</templateDirectory>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000408 <template>maven-site.vm</template>
409 </configuration>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000410 </plugin>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000411 <plugin>
412 <groupId>org.apache.maven.plugins</groupId>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000413 <artifactId>maven-surefire-report-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000414 </plugin>
415 <plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000416 <groupId>org.apache.maven.plugins</groupId>
417 <artifactId>maven-jxr-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000418 </plugin>
419 <plugin>
420 <groupId>org.apache.maven.plugins</groupId>
421 <artifactId>maven-project-info-reports-plugin</artifactId>
422 <reportSets>
423 <reportSet>
424 <reports>
425 <report>index</report>
426 <report>dependencies</report>
427 <report>project-team</report>
428 <report>mailing-list</report>
429 <report>issue-tracking</report>
430 <report>license</report>
431 <report>scm</report>
432 </reports>
433 </reportSet>
434 </reportSets>
435 </plugin>
436 <!--plugin>
437 <groupId>org.apache.maven.plugins</groupId>
438 <artifactId>maven-javadoc-plugin</artifactId>
439 <configuration>
440 <aggregate>true</aggregate>
441 </configuration>
442 </plugin-->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000443 </plugins>
444 </reporting>
Stuart McCulloch756832e2008-02-10 17:37:50 +0000445</project>