blob: cd3584503e6fc7699d7c0da5d958c83535c8b77f [file] [log] [blame]
Karl Pauls4ebe5082006-10-30 15:00:08 +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-->
Richard S. Hall061dffd2007-04-28 15:11:03 +000019<project xmlns="http://maven.apache.org/POM/4.0.0"
20 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21 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 +000022 <modelVersion>4.0.0</modelVersion>
Michael E. Rodriguez406386d2007-03-20 02:56:45 +000023
24 <parent>
25 <groupId>org.apache</groupId>
26 <artifactId>apache</artifactId>
27 <version>4</version>
28 </parent>
29
Karl Paulsd69e8af2006-08-12 09:51:20 +000030 <groupId>org.apache.felix</groupId>
31 <artifactId>felix</artifactId>
32 <packaging>pom</packaging>
Marcel Offermans0ed87292006-08-17 19:10:30 +000033 <name>Apache Felix</name>
Richard S. Hallf2be1962006-12-22 19:46:42 +000034 <version>0.9.0-incubator-SNAPSHOT</version>
Richard S. Hall1764f302007-06-18 20:50:24 +000035 <url>http://felix.apache.org/</url>
Karl Pauls589e2b32007-07-11 18:29:29 +000036 <inceptionYear>2006</inceptionYear>
Marcel Offermans0ed87292006-08-17 19:10:30 +000037 <description>Apache felix is an OSGi implementation.</description>
38
39 <issueManagement>
40 <system>Jira</system>
41 <url>http://issues.apache.org/jira/browse/FELIX</url>
Richard S. Hall1ca96a92007-02-12 15:46:10 +000042 </issueManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +000043
44 <mailingLists>
45 <mailingList>
46 <name>Felix Dev</name>
Richard S. Hall1764f302007-06-18 20:50:24 +000047 <subscribe>dev-subscribe@felix.apache.org</subscribe>
48 <unsubscribe>dev-unsubscribe@felix.apache.org</unsubscribe>
Marcel Offermans0ed87292006-08-17 19:10:30 +000049 <post>-</post>
Richard S. Hall1764f302007-06-18 20:50:24 +000050 <archive>http://www.mail-archive.com/dev%40felix.apache.org/</archive>
Marcel Offermans0ed87292006-08-17 19:10:30 +000051 </mailingList>
52 <mailingList>
53 <name>Felix Commits</name>
Richard S. Hall1764f302007-06-18 20:50:24 +000054 <subscribe>commits-subscribe@felix.apache.org</subscribe>
55 <unsubscribe>commits-unsubscribe@felix.apache.org</unsubscribe>
Marcel Offermans0ed87292006-08-17 19:10:30 +000056 <post>-</post>
Richard S. Hall1764f302007-06-18 20:50:24 +000057 <archive>http://www.mail-archive.com/commits%40felix.apache.org/</archive>
Marcel Offermans0ed87292006-08-17 19:10:30 +000058 </mailingList>
59 </mailingLists>
60
Marcel Offermans0ed87292006-08-17 19:10:30 +000061 <scm>
Richard S. Hall1764f302007-06-18 20:50:24 +000062 <connection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk</connection>
63 <developerConnection>scm:svn:http://svn.apache.org/repos/asf/felix/trunk</developerConnection>
64 <url>http://svn.apache.org/viewvc/felix/trunk/?root=Apache-SVN</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +000065 </scm>
Karl Paulsd69e8af2006-08-12 09:51:20 +000066
Richard S. Hall1ca96a92007-02-12 15:46:10 +000067 <!--
68 Felix contains 3 custom maven packaging plugins. Each creates a jar file
69 as an artifact.
70
Richard S. Hall797bc982007-05-21 18:35:07 +000071 maven-bundle-plugin
Richard S. Hall1ca96a92007-02-12 15:46:10 +000072 (bundle packaging - latest prefered plugin for generating OSGi bundles.)
73 maven-osgi-plugin
74 (osgi-bundle packaging - old plugin for generating OSGi bundles.)
75 org.apache.felix.ipojo.plugin
76 (plugin for generating iPOJO OSGi bundles.)
77
78 But with maven bug https://issues.apache.org/jira/browse/FELIX-198 files
79 are not always created with the correct extension in the repository.
Karl Paulsd69e8af2006-08-12 09:51:20 +000080
Richard S. Hall1ca96a92007-02-12 15:46:10 +000081 As a work around, this pom creates different profiles for building the
82 different types of felix modules.
Stephane Frenotab672472006-08-29 13:29:31 +000083
Richard S. Hall1ca96a92007-02-12 15:46:10 +000084 Usage:
85 mvn -Dpackaging=<type> clean install
86 -->
Karl Paulsd69e8af2006-08-12 09:51:20 +000087
Stephane Frenotab672472006-08-29 13:29:31 +000088 <profiles>
Richard S. Hall1ca96a92007-02-12 15:46:10 +000089
Stephane Frenotab672472006-08-29 13:29:31 +000090 <profile>
Richard S. Hall430f3352007-03-28 14:27:28 +000091 <id>packaging-plugins</id>
92 <activation>
93 <property>
94 <name>packaging</name>
95 <value>plugins</value>
96 </property>
97 </activation>
98 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +000099 <module>../bundleplugin</module>
100 <module>../tools/maven2/maven-osgi-plugin</module>
101 <module>../ipojo/metadata</module>
102 <module>../ipojo/manipulator</module>
103 <module>../ipojo/plugin</module>
Richard S. Hall430f3352007-03-28 14:27:28 +0000104 </modules>
105 </profile>
106
107 <profile>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000108 <id>packaging-ipojo-bundle</id>
Stephane Frenotab672472006-08-29 13:29:31 +0000109 <activation>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000110 <property>
111 <name>packaging</name>
112 <value>ipojo-bundle</value>
113 </property>
114 </activation>
115 <modules>
Clement Escoffierace86c52007-06-24 17:44:53 +0000116 <!--<module>ipojo/arch</module>-->
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000117 </modules>
118 </profile>
119
120 <profile>
121 <id>packaging-bundle</id>
122 <activation>
123 <property>
124 <name>packaging</name>
125 <value>bundle</value>
126 </property>
127 </activation>
128 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +0000129 <module>../org.osgi.foundation</module>
130 <module>../javax.servlet</module>
131 <module>../org.osgi.core</module>
132 <module>../org.osgi.compendium</module>
133 <module>../framework</module>
134 <module>../main</module>
135 <module>../shell</module>
136 <module>../shell.tui</module>
137 <module>../shell.gui</module>
138 <module>../shell.gui.plugin</module>
139 <module>../bundlerepository</module>
140 <module>../log</module>
141 <module>../eventadmin</module>
142 <module>../http.jetty</module>
143 <module>../scr</module>
144 <module>../configadmin</module>
145 <module>../metatype</module>
146 <module>../dependencymanager</module>
147 <module>../servicebinder</module>
148 <module>../wireadmin</module>
Richard S. Hall8c011c62007-04-17 14:31:35 +0000149
Karl Pauls589e2b32007-07-11 18:29:29 +0000150 <module>../ipojo/core</module>
151 <module>../ipojo/arch</module>
Stephane Frenot8a223dc2007-06-28 15:04:22 +0000152
Karl Pauls589e2b32007-07-11 18:29:29 +0000153 <module>../mosgi</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000154 </modules>
155 </profile>
156
157 <profile>
158 <id>packaging-osgi-bundle</id>
159 <activation>
160 <property>
161 <name>packaging</name>
162 <value>osgi-bundle</value>
163 </property>
164 </activation>
165 <modules>
Karl Pauls589e2b32007-07-11 18:29:29 +0000166 <module>../org.apache.felix.daemon</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000167
Karl Pauls589e2b32007-07-11 18:29:29 +0000168 <module>../examples</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000169
Karl Pauls589e2b32007-07-11 18:29:29 +0000170 <module>../upnp.extra</module>
171 <module>../upnp.basedriver</module>
172 <module>../upnp.tester</module>
173 <module>../upnp.sample.tv</module>
174 <module>../upnp.sample.clock</module>
175 <module>../upnp.sample.binaryLight</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000176
177 <!-- <module>tools/mangen</module> -->
178
Richard S. Hall8c011c62007-04-17 14:31:35 +0000179
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000180 </modules>
181 </profile>
Stephane Frenotab672472006-08-29 13:29:31 +0000182 </profiles>
183
Stephane Frenote8c7a982006-09-28 15:46:53 +0000184 <!-- Specify a default version number for dependencies -->
185 <dependencyManagement>
186 <dependencies>
187 <dependency>
188 <groupId>org.apache.felix</groupId>
189 <artifactId>org.osgi.core</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000190 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000191 </dependency>
192 <dependency>
193 <groupId>org.apache.felix</groupId>
194 <artifactId>org.osgi.compendium</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000195 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000196 </dependency>
197 <dependency>
198 <groupId>org.apache.felix</groupId>
199 <artifactId>org.apache.felix.framework</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000200 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000201 </dependency>
202 <dependency>
203 <groupId>org.apache.felix</groupId>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000204 <artifactId>org.apache.felix.bundlerepository</artifactId>
205 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000206 </dependency>
207 <dependency>
208 <groupId>org.apache.felix</groupId>
209 <artifactId>org.apache.felix.mosgi.jmx.registry</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000210 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000211 </dependency>
212 <dependency>
213 <groupId>org.apache.felix</groupId>
214 <artifactId>org.apache.felix.mosgi.jmx.agent</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000215 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000216 </dependency>
217 <dependency>
218 <groupId>org.apache.felix</groupId>
219 <artifactId>org.apache.felix.mosgi.console.ifc</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000220 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000221 </dependency>
222 </dependencies>
223 </dependencyManagement>
224
Karl Paulsd69e8af2006-08-12 09:51:20 +0000225 <distributionManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000226 <site>
227 <id>felix website</id>
Marcel Offermansf6737032006-08-17 19:49:13 +0000228 <url>file:///${user.dir}/target/site-deployed/</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000229 </site>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000230 <repository>
Michael E. Rodriguez406386d2007-03-20 02:56:45 +0000231 <id>apache.incubator.releases</id>
232 <name>Apache Incubator Release Distribution Repository</name>
233 <url>scp://people.apache.org/www/people.apache.org/repo/m2-incubating-repository</url>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000234 </repository>
235 </distributionManagement>
236
237 <pluginRepositories>
238 <pluginRepository>
239 <id>apache.snapshots</id>
240 <name>snapshot plugins</name>
241 <url>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000242 http://people.apache.org/repo/m2-snapshot-repository
Karl Paulsd69e8af2006-08-12 09:51:20 +0000243 </url>
Richard S. Halla897e0e2007-02-13 05:55:13 +0000244 <releases>
245 <enabled>false</enabled>
246 </releases>
247 <snapshots>
248 <enabled>true</enabled>
249 </snapshots>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000250 </pluginRepository>
251 </pluginRepositories>
252
253 <!-- definitions for testing -->
254 <dependencies>
255 <dependency>
256 <groupId>junit</groupId>
257 <artifactId>junit</artifactId>
258 <version>3.8.1</version>
259 <scope>test</scope>
260 </dependency>
261 <dependency>
262 <groupId>easymock</groupId>
263 <artifactId>easymock</artifactId>
264 <version>1.2_Java1.3</version>
265 <scope>test</scope>
266 </dependency>
267 </dependencies>
268 <build>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000269 <pluginManagement>
270 <plugins>
271 <plugin>
272 <groupId>org.apache.maven.plugins</groupId>
273 <artifactId>maven-compiler-plugin</artifactId>
274 <version>2.0.2</version>
275 </plugin>
276 <plugin>
277 <groupId>org.apache.maven.plugins</groupId>
278 <artifactId>maven-surefire-plugin</artifactId>
279 <version>2.3</version>
280 </plugin>
281 <plugin>
282 <groupId>org.apache.maven.plugins</groupId>
283 <artifactId>maven-jar-plugin</artifactId>
284 <version>2.1</version>
285 </plugin>
286 <plugin>
287 <groupId>org.apache.maven.plugins</groupId>
288 <artifactId>maven-plugin-plugin</artifactId>
289 <version>2.3</version>
290 </plugin>
291 <plugin>
292 <groupId>org.apache.maven.plugins</groupId>
293 <artifactId>maven-install-plugin</artifactId>
294 <version>2.1</version>
295 </plugin>
296 <plugin>
297 <groupId>org.apache.maven.plugins</groupId>
298 <artifactId>maven-deploy-plugin</artifactId>
299 <version>2.3</version>
300 </plugin>
301 <plugin>
302 <groupId>org.apache.maven.plugins</groupId>
303 <artifactId>maven-site-plugin</artifactId>
304 <version>2.0-beta-5</version>
305 </plugin>
306 <plugin>
307 <groupId>org.apache.maven.plugins</groupId>
308 <artifactId>maven-project-info-reports-plugin</artifactId>
309 <version>2.0.1</version>
310 </plugin>
311 <plugin>
312 <groupId>org.apache.maven.plugins</groupId>
313 <artifactId>maven-jxr-plugin</artifactId>
314 <version>2.1</version>
315 </plugin>
316 <plugin>
317 <groupId>org.apache.maven.plugins</groupId>
318 <artifactId>maven-surefire-report-plugin</artifactId>
319 <version>2.3</version>
320 </plugin>
321 <plugin>
322 <groupId>org.apache.maven.plugins</groupId>
323 <artifactId>maven-javadoc-plugin</artifactId>
324 <version>2.2</version>
325 </plugin>
Carsten Ziegeler97646542007-07-04 17:03:06 +0000326 <plugin>
327 <groupId>org.apache.felix</groupId>
328 <artifactId>maven-bundle-plugin</artifactId>
329 <version>0.9.0-incubator-SNAPSHOT</version>
330 </plugin>
Karl Pauls589e2b32007-07-11 18:29:29 +0000331<!-- <plugin>
332 <groupId>org.apache.maven.plugins</groupId>
333 <artifactId>maven-remote-resources-plugin</artifactId>
334 <version>1.0-alpha-5</version>
335 </plugin> -->
Richard S. Hall061dffd2007-04-28 15:11:03 +0000336 </plugins>
337 </pluginManagement>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000338 <plugins>
339 <plugin>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-compiler-plugin</artifactId>
342 <configuration>
343 <target>1.4</target>
344 </configuration>
345 </plugin>
346 <plugin>
347 <groupId>org.apache.maven.plugins</groupId>
348 <artifactId>maven-surefire-plugin</artifactId>
349 </plugin>
Stephane Frenotab672472006-08-29 13:29:31 +0000350 <!-- plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-surefire-report-plugin</artifactId>
Stephane Frenotab672472006-08-29 13:29:31 +0000353 </plugin -->
Karl Pauls589e2b32007-07-11 18:29:29 +0000354 <!-- We want to package up license resources in the JARs produced
355 <plugin>
356 <groupId>org.apache.maven.plugins</groupId>
357 <artifactId>maven-remote-resources-plugin</artifactId>
358 <executions>
359 <execution>
360 <goals>
361 <goal>process</goal>
362 </goals>
363 <configuration>
364 <resourceBundles>
365 <resourceBundle>org.apache:apache-jar-resource-bundle:1.0</resourceBundle>
366 </resourceBundles>
367 </configuration>
368 </execution>
369 </executions>
370 </plugin>-->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000371 </plugins>
372 </build>
373 <reporting>
374 <plugins>
375 <plugin>
376 <groupId>org.apache.maven.plugins</groupId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000377 <artifactId>maven-site-plugin</artifactId>
378 <configuration>
Marcel Offermans5dcb02c2006-08-17 20:58:34 +0000379 <templateDirectory>${user.dir}/src/site/</templateDirectory>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000380 <template>maven-site.vm</template>
381 </configuration>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000382 </plugin>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000383 <plugin>
384 <groupId>org.apache.maven.plugins</groupId>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000385 <artifactId>maven-surefire-report-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000386 </plugin>
387 <plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-jxr-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000390 </plugin>
391 <plugin>
392 <groupId>org.apache.maven.plugins</groupId>
393 <artifactId>maven-project-info-reports-plugin</artifactId>
394 <reportSets>
395 <reportSet>
396 <reports>
397 <report>index</report>
398 <report>dependencies</report>
399 <report>project-team</report>
400 <report>mailing-list</report>
401 <report>issue-tracking</report>
402 <report>license</report>
403 <report>scm</report>
404 </reports>
405 </reportSet>
406 </reportSets>
407 </plugin>
408 <!--plugin>
409 <groupId>org.apache.maven.plugins</groupId>
410 <artifactId>maven-javadoc-plugin</artifactId>
411 <configuration>
412 <aggregate>true</aggregate>
413 </configuration>
414 </plugin-->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000415 </plugins>
416 </reporting>
417</project>