blob: 9c3b93b84486305a8e3e42168422617e97a1bd0f [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>
Marcel Offermans0ed87292006-08-17 19:10:30 +000035 <url>http://incubator.apache.org/felix/</url>
36 <description>Apache felix is an OSGi implementation.</description>
37
38 <issueManagement>
39 <system>Jira</system>
40 <url>http://issues.apache.org/jira/browse/FELIX</url>
Richard S. Hall1ca96a92007-02-12 15:46:10 +000041 </issueManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +000042
43 <mailingLists>
44 <mailingList>
45 <name>Felix Dev</name>
46 <subscribe>felix-dev-subscribe@incubator.apache.org</subscribe>
47 <unsubscribe>felix-dev-unsubscribe@incubator.apache.org</unsubscribe>
48 <post>-</post>
49 <archive>http://www.mail-archive.com/felix-dev%40incubator.apache.org/</archive>
50 </mailingList>
51 <mailingList>
52 <name>Felix Commits</name>
53 <subscribe>felix-commits-subscribe@incubator.apache.org</subscribe>
54 <unsubscribe>felix-commits-unsubscribe@incubator.apache.org</unsubscribe>
55 <post>-</post>
56 <archive>http://www.mail-archive.com/felix-commits%40incubator.apache.org/</archive>
57 </mailingList>
58 </mailingLists>
59
Marcel Offermans0ed87292006-08-17 19:10:30 +000060 <scm>
61 <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/felix</connection>
62 <developerConnection>scm:svn:http://svn.apache.org/repos/asf/incubator/felix</developerConnection>
63 <url>http://cvs.apache.org/viewcvs.cgi/incubator/felix/?root=Apache-SVN</url>
64 </scm>
Karl Paulsd69e8af2006-08-12 09:51:20 +000065
Richard S. Hall1ca96a92007-02-12 15:46:10 +000066 <!--
67 Felix contains 3 custom maven packaging plugins. Each creates a jar file
68 as an artifact.
69
Richard S. Hall797bc982007-05-21 18:35:07 +000070 maven-bundle-plugin
Richard S. Hall1ca96a92007-02-12 15:46:10 +000071 (bundle packaging - latest prefered plugin for generating OSGi bundles.)
72 maven-osgi-plugin
73 (osgi-bundle packaging - old plugin for generating OSGi bundles.)
74 org.apache.felix.ipojo.plugin
75 (plugin for generating iPOJO OSGi bundles.)
76
77 But with maven bug https://issues.apache.org/jira/browse/FELIX-198 files
78 are not always created with the correct extension in the repository.
Karl Paulsd69e8af2006-08-12 09:51:20 +000079
Richard S. Hall1ca96a92007-02-12 15:46:10 +000080 As a work around, this pom creates different profiles for building the
81 different types of felix modules.
Stephane Frenotab672472006-08-29 13:29:31 +000082
Richard S. Hall1ca96a92007-02-12 15:46:10 +000083 Usage:
84 mvn -Dpackaging=<type> clean install
85 -->
Karl Paulsd69e8af2006-08-12 09:51:20 +000086
Stephane Frenotab672472006-08-29 13:29:31 +000087 <profiles>
Richard S. Hall1ca96a92007-02-12 15:46:10 +000088
Stephane Frenotab672472006-08-29 13:29:31 +000089 <profile>
Richard S. Hall430f3352007-03-28 14:27:28 +000090 <id>packaging-plugins</id>
91 <activation>
92 <property>
93 <name>packaging</name>
94 <value>plugins</value>
95 </property>
96 </activation>
97 <modules>
Richard S. Hall48b14272007-05-20 22:09:53 +000098 <module>bundleplugin</module>
Richard S. Hall430f3352007-03-28 14:27:28 +000099 <module>tools/maven2/maven-osgi-plugin</module>
Richard S. Hall376e83e2007-05-21 02:25:53 +0000100 <module>ipojo/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>
Richard S. Hall376e83e2007-05-21 02:25: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>
125 <modules>
126 <module>org.osgi.foundation</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000127 <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>bundlerepository</module>
135 <module>log</module>
Karl Paulsc59b31d2007-05-20 21:29:39 +0000136 <module>eventadmin</module>
Karl Pauls84957a52007-05-14 21:55:49 +0000137 <module>http.jetty</module>
Felix Meschbergere7daaff2007-04-11 18:31:03 +0000138 <module>scr</module>
139 <module>configadmin</module>
140 <module>metatype</module>
Richard S. Hall9cb48fc2007-05-31 14:49:19 +0000141 <module>dependencymanager</module>
Richard S. Hall8c011c62007-04-17 14:31:35 +0000142
Richard S. Hall376e83e2007-05-21 02:25:53 +0000143 <module>ipojo/core</module>
144 <module>ipojo/metadata</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000145 </modules>
146 </profile>
147
148 <profile>
149 <id>packaging-osgi-bundle</id>
150 <activation>
151 <property>
152 <name>packaging</name>
153 <value>osgi-bundle</value>
154 </property>
155 </activation>
156 <modules>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000157 <module>shell.gui</module>
158 <module>shell.gui.plugin</module>
159 <module>org.apache.felix.daemon</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000160
161 <module>examples</module>
162
163 <module>servicebinder</module>
164 <module>wireadmin</module>
165 <module>upnp.extra</module>
166 <module>upnp.basedriver</module>
167 <module>upnp.tester</module>
168 <module>upnp.sample.tv</module>
169 <module>upnp.sample.clock</module>
170 <module>upnp.sample.binaryLight</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000171
172 <!-- <module>tools/mangen</module> -->
173
Richard S. Hall8c011c62007-04-17 14:31:35 +0000174
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000175 </modules>
176 </profile>
177
178 <profile>
179 <id>osgi-bundle-mosgi</id>
180 <activation>
181 <property>
182 <name>packaging</name>
183 <value>osgi-bundle-mosgi</value>
184 </property>
185 <!--Two activation elements don't AND. <jdk>1.5</jdk>-->
Stephane Frenotab672472006-08-29 13:29:31 +0000186 </activation>
187 <modules>
188 <module>mosgi.console.ifc</module>
189 <module>mosgi.console.component</module>
190 <module>mosgi.console.gui</module>
191 <module>mosgi.jmx.agent</module>
192 <module>mosgi.jmx.httpconnector</module>
193 <module>mosgi.jmx.registry</module>
194 <module>mosgi.jmx.remotelogger</module>
195 <module>mosgi.jmx.rmiconnector</module>
196 <module>mosgi.managedelements.osgiprobes</module>
197 <module>mosgi.managedelements.osgiprobes.tab</module>
Stephane Frenot0f068b62006-08-30 11:12:48 +0000198 <module>mosgi.managedelements.bundlesprobes</module>
199 <module>mosgi.managedelements.bundlesprobes.tab</module>
Stephane Frenot593bac32006-08-30 12:42:49 +0000200 <module>mosgi.managedelements.obrprobe</module>
201 <module>mosgi.managedelements.obrprobe.tab</module>
Stephane Frenot8ed309a2006-08-31 14:04:13 +0000202 <module>mosgi.managedelements.memoryprobe</module>
Stephane Frenotab672472006-08-29 13:29:31 +0000203 </modules>
204 </profile>
Stephane Frenotab672472006-08-29 13:29:31 +0000205 </profiles>
206
Stephane Frenote8c7a982006-09-28 15:46:53 +0000207 <!-- Specify a default version number for dependencies -->
208 <dependencyManagement>
209 <dependencies>
210 <dependency>
211 <groupId>org.apache.felix</groupId>
212 <artifactId>org.osgi.core</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000213 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000214 </dependency>
215 <dependency>
216 <groupId>org.apache.felix</groupId>
217 <artifactId>org.osgi.compendium</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000218 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000219 </dependency>
220 <dependency>
221 <groupId>org.apache.felix</groupId>
222 <artifactId>org.apache.felix.framework</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000223 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000224 </dependency>
225 <dependency>
226 <groupId>org.apache.felix</groupId>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000227 <artifactId>org.apache.felix.bundlerepository</artifactId>
228 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000229 </dependency>
230 <dependency>
231 <groupId>org.apache.felix</groupId>
232 <artifactId>org.apache.felix.mosgi.jmx.registry</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000233 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000234 </dependency>
235 <dependency>
236 <groupId>org.apache.felix</groupId>
237 <artifactId>org.apache.felix.mosgi.jmx.agent</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000238 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000239 </dependency>
240 <dependency>
241 <groupId>org.apache.felix</groupId>
242 <artifactId>org.apache.felix.mosgi.console.ifc</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000243 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000244 </dependency>
245 </dependencies>
246 </dependencyManagement>
247
Karl Paulsd69e8af2006-08-12 09:51:20 +0000248 <distributionManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000249 <site>
250 <id>felix website</id>
Marcel Offermansf6737032006-08-17 19:49:13 +0000251 <url>file:///${user.dir}/target/site-deployed/</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000252 </site>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000253 <repository>
Michael E. Rodriguez406386d2007-03-20 02:56:45 +0000254 <id>apache.incubator.releases</id>
255 <name>Apache Incubator Release Distribution Repository</name>
256 <url>scp://people.apache.org/www/people.apache.org/repo/m2-incubating-repository</url>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000257 </repository>
258 </distributionManagement>
259
260 <pluginRepositories>
261 <pluginRepository>
262 <id>apache.snapshots</id>
263 <name>snapshot plugins</name>
264 <url>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000265 http://people.apache.org/repo/m2-snapshot-repository
Karl Paulsd69e8af2006-08-12 09:51:20 +0000266 </url>
Richard S. Halla897e0e2007-02-13 05:55:13 +0000267 <releases>
268 <enabled>false</enabled>
269 </releases>
270 <snapshots>
271 <enabled>true</enabled>
272 </snapshots>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000273 </pluginRepository>
274 </pluginRepositories>
275
276 <!-- definitions for testing -->
277 <dependencies>
278 <dependency>
279 <groupId>junit</groupId>
280 <artifactId>junit</artifactId>
281 <version>3.8.1</version>
282 <scope>test</scope>
283 </dependency>
284 <dependency>
285 <groupId>easymock</groupId>
286 <artifactId>easymock</artifactId>
287 <version>1.2_Java1.3</version>
288 <scope>test</scope>
289 </dependency>
290 </dependencies>
291 <build>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000292 <pluginManagement>
293 <plugins>
294 <plugin>
295 <groupId>org.apache.maven.plugins</groupId>
296 <artifactId>maven-compiler-plugin</artifactId>
297 <version>2.0.2</version>
298 </plugin>
299 <plugin>
300 <groupId>org.apache.maven.plugins</groupId>
301 <artifactId>maven-surefire-plugin</artifactId>
302 <version>2.3</version>
303 </plugin>
304 <plugin>
305 <groupId>org.apache.maven.plugins</groupId>
306 <artifactId>maven-jar-plugin</artifactId>
307 <version>2.1</version>
308 </plugin>
309 <plugin>
310 <groupId>org.apache.maven.plugins</groupId>
311 <artifactId>maven-plugin-plugin</artifactId>
312 <version>2.3</version>
313 </plugin>
314 <plugin>
315 <groupId>org.apache.maven.plugins</groupId>
316 <artifactId>maven-install-plugin</artifactId>
317 <version>2.1</version>
318 </plugin>
319 <plugin>
320 <groupId>org.apache.maven.plugins</groupId>
321 <artifactId>maven-deploy-plugin</artifactId>
322 <version>2.3</version>
323 </plugin>
324 <plugin>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-site-plugin</artifactId>
327 <version>2.0-beta-5</version>
328 </plugin>
329 <plugin>
330 <groupId>org.apache.maven.plugins</groupId>
331 <artifactId>maven-project-info-reports-plugin</artifactId>
332 <version>2.0.1</version>
333 </plugin>
334 <plugin>
335 <groupId>org.apache.maven.plugins</groupId>
336 <artifactId>maven-jxr-plugin</artifactId>
337 <version>2.1</version>
338 </plugin>
339 <plugin>
340 <groupId>org.apache.maven.plugins</groupId>
341 <artifactId>maven-surefire-report-plugin</artifactId>
342 <version>2.3</version>
343 </plugin>
344 <plugin>
345 <groupId>org.apache.maven.plugins</groupId>
346 <artifactId>maven-javadoc-plugin</artifactId>
347 <version>2.2</version>
348 </plugin>
349 </plugins>
350 </pluginManagement>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000351 <plugins>
352 <plugin>
353 <groupId>org.apache.maven.plugins</groupId>
354 <artifactId>maven-compiler-plugin</artifactId>
355 <configuration>
356 <target>1.4</target>
357 </configuration>
358 </plugin>
359 <plugin>
360 <groupId>org.apache.maven.plugins</groupId>
361 <artifactId>maven-surefire-plugin</artifactId>
362 </plugin>
Stephane Frenotab672472006-08-29 13:29:31 +0000363 <!-- plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000364 <groupId>org.apache.maven.plugins</groupId>
365 <artifactId>maven-surefire-report-plugin</artifactId>
Stephane Frenotab672472006-08-29 13:29:31 +0000366 </plugin -->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000367 </plugins>
368 </build>
369 <reporting>
370 <plugins>
371 <plugin>
372 <groupId>org.apache.maven.plugins</groupId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000373 <artifactId>maven-site-plugin</artifactId>
374 <configuration>
Marcel Offermans5dcb02c2006-08-17 20:58:34 +0000375 <templateDirectory>${user.dir}/src/site/</templateDirectory>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000376 <template>maven-site.vm</template>
377 </configuration>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000378 </plugin>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000379 <plugin>
380 <groupId>org.apache.maven.plugins</groupId>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000381 <artifactId>maven-surefire-report-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000382 </plugin>
383 <plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000384 <groupId>org.apache.maven.plugins</groupId>
385 <artifactId>maven-jxr-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000386 </plugin>
387 <plugin>
388 <groupId>org.apache.maven.plugins</groupId>
389 <artifactId>maven-project-info-reports-plugin</artifactId>
390 <reportSets>
391 <reportSet>
392 <reports>
393 <report>index</report>
394 <report>dependencies</report>
395 <report>project-team</report>
396 <report>mailing-list</report>
397 <report>issue-tracking</report>
398 <report>license</report>
399 <report>scm</report>
400 </reports>
401 </reportSet>
402 </reportSets>
403 </plugin>
404 <!--plugin>
405 <groupId>org.apache.maven.plugins</groupId>
406 <artifactId>maven-javadoc-plugin</artifactId>
407 <configuration>
408 <aggregate>true</aggregate>
409 </configuration>
410 </plugin-->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000411 </plugins>
412 </reporting>
413</project>