blob: f52ed93344c4f01612abad3e673407e4e0700fe0 [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 Pauls62627f62008-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>
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>
Stefano Lenzi17d31382008-03-05 08:21:06 +0000147 <module>../deploymentadmin</module>
Karl Pauls589e2b32007-07-11 18:29:29 +0000148 <module>../servicebinder</module>
149 <module>../wireadmin</module>
Carsten Ziegeler41c255e2007-07-30 13:06:38 +0000150 <module>../prefs</module>
Felix Meschberger41eebdc2008-05-16 13:58:09 +0000151 <module>../webconsole</module>
Richard S. Hall8c011c62007-04-17 14:31:35 +0000152
Clement Escoffierb5715b12007-09-25 14:29:52 +0000153 <module>../ipojo</module>
Marcel Offermans61791862007-07-23 17:35:55 +0000154
Karl Pauls0a3858c2007-07-13 22:03:31 +0000155 <module>../mosgi</module>
Felix Meschbergerfe090f82007-09-20 14:03:22 +0000156 <module>../jmood</module>
Richard S. Hall02496082007-08-23 15:29:20 +0000157
158 <module>../examples</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000159 </modules>
160 </profile>
161
162 <profile>
163 <id>packaging-osgi-bundle</id>
164 <activation>
165 <property>
166 <name>packaging</name>
167 <value>osgi-bundle</value>
168 </property>
169 </activation>
170 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +0000171 <module>../org.apache.felix.daemon</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000172
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000173 <!-- <module>tools/mangen</module> -->
174
Richard S. Hall8c011c62007-04-17 14:31:35 +0000175
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000176 </modules>
177 </profile>
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000178 <profile>
179 <id>release</id>
180 <build>
181 <plugins>
182 <plugin>
183 <groupId>org.apache.maven.plugins</groupId>
184 <artifactId>maven-gpg-plugin</artifactId>
185 <executions>
186 <execution>
187 <id>sign-artifacts</id>
188 <phase>verify</phase>
189 <goals>
190 <goal>sign</goal>
191 </goals>
192 </execution>
193 </executions>
194 </plugin>
195 <plugin>
196 <groupId>org.apache.maven.plugins</groupId>
197 <artifactId>maven-assembly-plugin</artifactId>
198 <configuration>
199 <descriptorRefs>
200 <descriptorRef>bin</descriptorRef>
201 <descriptorRef>project</descriptorRef>
202 </descriptorRefs>
203 </configuration>
204 <executions>
205 <execution>
206 <id>make-assembly</id>
207 <phase>package</phase>
208 <goals>
209 <goal>attached</goal>
210 </goals>
211 </execution>
212 </executions>
213 </plugin>
214 </plugins>
215 </build>
216 </profile>
Stephane Frenotab672472006-08-29 13:29:31 +0000217 </profiles>
218
Karl Paulsd69e8af2006-08-12 09:51:20 +0000219 <distributionManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000220 <site>
221 <id>felix website</id>
Marcel Offermansf6737032006-08-17 19:49:13 +0000222 <url>file:///${user.dir}/target/site-deployed/</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000223 </site>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000224 <repository>
Carsten Ziegeler769d0cb2007-12-28 15:28:17 +0000225 <id>apache.releases</id>
226 <name>Apache Release Distribution Repository</name>
227 <url>scp://people.apache.org/www/people.apache.org/repo/m2-ibiblio-rsync-repository</url>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000228 </repository>
229 </distributionManagement>
230
231 <pluginRepositories>
232 <pluginRepository>
233 <id>apache.snapshots</id>
234 <name>snapshot plugins</name>
235 <url>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000236 http://people.apache.org/repo/m2-snapshot-repository
Karl Paulsd69e8af2006-08-12 09:51:20 +0000237 </url>
Richard S. Halla897e0e2007-02-13 05:55:13 +0000238 <releases>
239 <enabled>false</enabled>
240 </releases>
241 <snapshots>
242 <enabled>true</enabled>
243 </snapshots>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000244 </pluginRepository>
245 </pluginRepositories>
246
247 <!-- definitions for testing -->
248 <dependencies>
249 <dependency>
250 <groupId>junit</groupId>
251 <artifactId>junit</artifactId>
252 <version>3.8.1</version>
253 <scope>test</scope>
254 </dependency>
255 <dependency>
256 <groupId>easymock</groupId>
257 <artifactId>easymock</artifactId>
258 <version>1.2_Java1.3</version>
259 <scope>test</scope>
260 </dependency>
261 </dependencies>
262 <build>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000263 <pluginManagement>
264 <plugins>
265 <plugin>
266 <groupId>org.apache.maven.plugins</groupId>
267 <artifactId>maven-compiler-plugin</artifactId>
268 <version>2.0.2</version>
269 </plugin>
270 <plugin>
271 <groupId>org.apache.maven.plugins</groupId>
272 <artifactId>maven-surefire-plugin</artifactId>
273 <version>2.3</version>
274 </plugin>
275 <plugin>
276 <groupId>org.apache.maven.plugins</groupId>
277 <artifactId>maven-jar-plugin</artifactId>
278 <version>2.1</version>
279 </plugin>
280 <plugin>
281 <groupId>org.apache.maven.plugins</groupId>
282 <artifactId>maven-plugin-plugin</artifactId>
283 <version>2.3</version>
284 </plugin>
285 <plugin>
286 <groupId>org.apache.maven.plugins</groupId>
287 <artifactId>maven-install-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000288 <version>2.2</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000289 </plugin>
290 <plugin>
291 <groupId>org.apache.maven.plugins</groupId>
292 <artifactId>maven-deploy-plugin</artifactId>
293 <version>2.3</version>
294 </plugin>
295 <plugin>
296 <groupId>org.apache.maven.plugins</groupId>
297 <artifactId>maven-site-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000298 <version>2.0-beta-6</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000299 </plugin>
300 <plugin>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-project-info-reports-plugin</artifactId>
303 <version>2.0.1</version>
304 </plugin>
305 <plugin>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-jxr-plugin</artifactId>
308 <version>2.1</version>
309 </plugin>
310 <plugin>
311 <groupId>org.apache.maven.plugins</groupId>
312 <artifactId>maven-surefire-report-plugin</artifactId>
313 <version>2.3</version>
314 </plugin>
315 <plugin>
316 <groupId>org.apache.maven.plugins</groupId>
317 <artifactId>maven-javadoc-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000318 <version>2.3</version>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000319 </plugin>
Karl Pauls0a3858c2007-07-13 22:03:31 +0000320<!-- <plugin>
Carsten Ziegeler97646542007-07-04 17:03:06 +0000321 <groupId>org.apache.felix</groupId>
322 <artifactId>maven-bundle-plugin</artifactId>
Karl Pauls0a3858c2007-07-13 22:03:31 +0000323 <version>1.1.0-SNAPSHOT</version>
324 </plugin> -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000325<!-- <plugin>
326 <groupId>org.apache.maven.plugins</groupId>
327 <artifactId>maven-remote-resources-plugin</artifactId>
Carsten Ziegelerf8f471c2008-01-11 15:57:45 +0000328 <version>1.0-alpha-6</version>
Karl Pauls589e2b32007-07-11 18:29:29 +0000329 </plugin> -->
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000330 <plugin>
331 <groupId>org.apache.maven.plugins</groupId>
332 <artifactId>maven-release-plugin</artifactId>
333 <version>2.0-beta-7</version>
334 </plugin>
335 <plugin>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-gpg-plugin</artifactId>
338 <version>1.0-alpha-4</version>
339 </plugin>
340 <plugin>
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-assembly-plugin</artifactId>
343 <version>2.2-beta-1</version>
344 </plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000345 </plugins>
346 </pluginManagement>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000347 <plugins>
348 <plugin>
349 <groupId>org.apache.maven.plugins</groupId>
350 <artifactId>maven-compiler-plugin</artifactId>
351 <configuration>
Stuart McCulloch98f7c402007-09-21 03:38:03 +0000352 <target>1.3</target>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000353 </configuration>
354 </plugin>
355 <plugin>
356 <groupId>org.apache.maven.plugins</groupId>
357 <artifactId>maven-surefire-plugin</artifactId>
358 </plugin>
Stephane Frenotab672472006-08-29 13:29:31 +0000359 <!-- plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000360 <groupId>org.apache.maven.plugins</groupId>
361 <artifactId>maven-surefire-report-plugin</artifactId>
Stephane Frenotab672472006-08-29 13:29:31 +0000362 </plugin -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000363 <!-- We want to package up license resources in the JARs produced
364 <plugin>
365 <groupId>org.apache.maven.plugins</groupId>
366 <artifactId>maven-remote-resources-plugin</artifactId>
367 <executions>
368 <execution>
369 <goals>
370 <goal>process</goal>
371 </goals>
372 <configuration>
373 <resourceBundles>
374 <resourceBundle>org.apache:apache-jar-resource-bundle:1.0</resourceBundle>
375 </resourceBundles>
376 </configuration>
377 </execution>
378 </executions>
379 </plugin>-->
Carsten Ziegeler00eaded2007-12-14 17:22:20 +0000380 <plugin>
381 <groupId>org.apache.maven.plugins</groupId>
382 <artifactId>maven-release-plugin</artifactId>
383 <configuration>
384 <tagBase>https://svn.apache.org/repos/asf/felix/releases</tagBase>
385 <useReleaseProfile>false</useReleaseProfile>
386 <goals>deploy</goals>
387 </configuration>
388 </plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000389 </plugins>
Carsten Ziegelerc7a70c22007-12-20 09:30:29 +0000390 <resources>
391 <resource>
392 <directory>src/main/resources</directory>
393 </resource>
394 <resource>
395 <directory>.</directory>
396 <targetPath>META-INF</targetPath>
397 <includes>
Carsten Ziegeler80794822008-01-07 16:15:52 +0000398 <include>LICENSE*</include>
399 <include>NOTICE*</include>
Carsten Ziegelerc7a70c22007-12-20 09:30:29 +0000400 </includes>
401 </resource>
402 </resources>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000403 </build>
404 <reporting>
405 <plugins>
406 <plugin>
407 <groupId>org.apache.maven.plugins</groupId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000408 <artifactId>maven-site-plugin</artifactId>
409 <configuration>
Marcel Offermans5dcb02c2006-08-17 20:58:34 +0000410 <templateDirectory>${user.dir}/src/site/</templateDirectory>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000411 <template>maven-site.vm</template>
412 </configuration>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000413 </plugin>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000414 <plugin>
415 <groupId>org.apache.maven.plugins</groupId>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000416 <artifactId>maven-surefire-report-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000417 </plugin>
418 <plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-jxr-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000421 </plugin>
422 <plugin>
423 <groupId>org.apache.maven.plugins</groupId>
424 <artifactId>maven-project-info-reports-plugin</artifactId>
425 <reportSets>
426 <reportSet>
427 <reports>
428 <report>index</report>
429 <report>dependencies</report>
430 <report>project-team</report>
431 <report>mailing-list</report>
432 <report>issue-tracking</report>
433 <report>license</report>
434 <report>scm</report>
435 </reports>
436 </reportSet>
437 </reportSets>
438 </plugin>
439 <!--plugin>
440 <groupId>org.apache.maven.plugins</groupId>
441 <artifactId>maven-javadoc-plugin</artifactId>
442 <configuration>
443 <aggregate>true</aggregate>
444 </configuration>
445 </plugin-->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000446 </plugins>
447 </reporting>
Stuart McCulloch756832e2008-02-10 17:37:50 +0000448</project>