blob: 2276a2aa9019fbd35e99714cf1a2ac6835caa564 [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
70 maven-bundle-plugin
71 (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>
98 <module>tools/maven2/maven-bundle-plugin</module>
99 <module>tools/maven2/maven-osgi-plugin</module>
100 <module>ipojo.plugin</module>
101 </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>
113 <module>ipojo.arch</module>
114 </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>
136 <module>eventadmin</module>
137 <module>eventadmin.bridge.upnp</module>
138 <module>eventadmin.bridge.configuration</module>
139 <module>eventadmin.bridge.useradmin</module>
140 <module>eventadmin.bridge.wireadmin</module>
Felix Meschbergere7daaff2007-04-11 18:31:03 +0000141
142 <module>scr</module>
143 <module>configadmin</module>
144 <module>metatype</module>
Richard S. Hall8c011c62007-04-17 14:31:35 +0000145
146 <module>ipojo</module>
147 <module>ipojo.metadata</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000148 </modules>
149 </profile>
150
151 <profile>
152 <id>packaging-osgi-bundle</id>
153 <activation>
154 <property>
155 <name>packaging</name>
156 <value>osgi-bundle</value>
157 </property>
158 </activation>
159 <modules>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000160 <module>shell.gui</module>
161 <module>shell.gui.plugin</module>
162 <module>org.apache.felix.daemon</module>
Richard S. Halle33af562007-03-28 16:06:34 +0000163 <module>dependencymanager</module>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000164
165 <module>examples</module>
166
167 <module>servicebinder</module>
168 <module>wireadmin</module>
169 <module>upnp.extra</module>
170 <module>upnp.basedriver</module>
171 <module>upnp.tester</module>
172 <module>upnp.sample.tv</module>
173 <module>upnp.sample.clock</module>
174 <module>upnp.sample.binaryLight</module>
175 <!-- <module>http.jetty</module> -->
Richard S. Hallebe20992007-04-06 16:21:53 +0000176
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000177
178 <!-- <module>tools/mangen</module> -->
179
Richard S. Hall8c011c62007-04-17 14:31:35 +0000180
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000181 </modules>
182 </profile>
183
184 <profile>
185 <id>osgi-bundle-mosgi</id>
186 <activation>
187 <property>
188 <name>packaging</name>
189 <value>osgi-bundle-mosgi</value>
190 </property>
191 <!--Two activation elements don't AND. <jdk>1.5</jdk>-->
Stephane Frenotab672472006-08-29 13:29:31 +0000192 </activation>
193 <modules>
194 <module>mosgi.console.ifc</module>
195 <module>mosgi.console.component</module>
196 <module>mosgi.console.gui</module>
197 <module>mosgi.jmx.agent</module>
198 <module>mosgi.jmx.httpconnector</module>
199 <module>mosgi.jmx.registry</module>
200 <module>mosgi.jmx.remotelogger</module>
201 <module>mosgi.jmx.rmiconnector</module>
202 <module>mosgi.managedelements.osgiprobes</module>
203 <module>mosgi.managedelements.osgiprobes.tab</module>
Stephane Frenot0f068b62006-08-30 11:12:48 +0000204 <module>mosgi.managedelements.bundlesprobes</module>
205 <module>mosgi.managedelements.bundlesprobes.tab</module>
Stephane Frenot593bac32006-08-30 12:42:49 +0000206 <module>mosgi.managedelements.obrprobe</module>
207 <module>mosgi.managedelements.obrprobe.tab</module>
Stephane Frenot8ed309a2006-08-31 14:04:13 +0000208 <module>mosgi.managedelements.memoryprobe</module>
Stephane Frenotab672472006-08-29 13:29:31 +0000209 </modules>
210 </profile>
Stephane Frenotab672472006-08-29 13:29:31 +0000211 </profiles>
212
Stephane Frenote8c7a982006-09-28 15:46:53 +0000213 <!-- Specify a default version number for dependencies -->
214 <dependencyManagement>
215 <dependencies>
216 <dependency>
217 <groupId>org.apache.felix</groupId>
218 <artifactId>org.osgi.core</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000219 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000220 </dependency>
221 <dependency>
222 <groupId>org.apache.felix</groupId>
223 <artifactId>org.osgi.compendium</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000224 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000225 </dependency>
226 <dependency>
227 <groupId>org.apache.felix</groupId>
228 <artifactId>org.apache.felix.framework</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000229 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000230 </dependency>
231 <dependency>
232 <groupId>org.apache.felix</groupId>
Richard S. Hall1ca96a92007-02-12 15:46:10 +0000233 <artifactId>org.apache.felix.bundlerepository</artifactId>
234 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000235 </dependency>
236 <dependency>
237 <groupId>org.apache.felix</groupId>
238 <artifactId>org.apache.felix.mosgi.jmx.registry</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000239 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000240 </dependency>
241 <dependency>
242 <groupId>org.apache.felix</groupId>
243 <artifactId>org.apache.felix.mosgi.jmx.agent</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000244 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000245 </dependency>
246 <dependency>
247 <groupId>org.apache.felix</groupId>
248 <artifactId>org.apache.felix.mosgi.console.ifc</artifactId>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000249 <version>0.9.0-incubator-SNAPSHOT</version>
Stephane Frenote8c7a982006-09-28 15:46:53 +0000250 </dependency>
251 </dependencies>
252 </dependencyManagement>
253
Karl Paulsd69e8af2006-08-12 09:51:20 +0000254 <distributionManagement>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000255 <site>
256 <id>felix website</id>
Marcel Offermansf6737032006-08-17 19:49:13 +0000257 <url>file:///${user.dir}/target/site-deployed/</url>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000258 </site>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000259 <repository>
Michael E. Rodriguez406386d2007-03-20 02:56:45 +0000260 <id>apache.incubator.releases</id>
261 <name>Apache Incubator Release Distribution Repository</name>
262 <url>scp://people.apache.org/www/people.apache.org/repo/m2-incubating-repository</url>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000263 </repository>
264 </distributionManagement>
265
266 <pluginRepositories>
267 <pluginRepository>
268 <id>apache.snapshots</id>
269 <name>snapshot plugins</name>
270 <url>
Richard S. Hallf2be1962006-12-22 19:46:42 +0000271 http://people.apache.org/repo/m2-snapshot-repository
Karl Paulsd69e8af2006-08-12 09:51:20 +0000272 </url>
Richard S. Halla897e0e2007-02-13 05:55:13 +0000273 <releases>
274 <enabled>false</enabled>
275 </releases>
276 <snapshots>
277 <enabled>true</enabled>
278 </snapshots>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000279 </pluginRepository>
280 </pluginRepositories>
281
282 <!-- definitions for testing -->
283 <dependencies>
284 <dependency>
285 <groupId>junit</groupId>
286 <artifactId>junit</artifactId>
287 <version>3.8.1</version>
288 <scope>test</scope>
289 </dependency>
290 <dependency>
291 <groupId>easymock</groupId>
292 <artifactId>easymock</artifactId>
293 <version>1.2_Java1.3</version>
294 <scope>test</scope>
295 </dependency>
296 </dependencies>
297 <build>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000298 <pluginManagement>
299 <plugins>
300 <plugin>
301 <groupId>org.apache.maven.plugins</groupId>
302 <artifactId>maven-compiler-plugin</artifactId>
303 <version>2.0.2</version>
304 </plugin>
305 <plugin>
306 <groupId>org.apache.maven.plugins</groupId>
307 <artifactId>maven-surefire-plugin</artifactId>
308 <version>2.3</version>
309 </plugin>
310 <plugin>
311 <groupId>org.apache.maven.plugins</groupId>
312 <artifactId>maven-jar-plugin</artifactId>
313 <version>2.1</version>
314 </plugin>
315 <plugin>
316 <groupId>org.apache.maven.plugins</groupId>
317 <artifactId>maven-plugin-plugin</artifactId>
318 <version>2.3</version>
319 </plugin>
320 <plugin>
321 <groupId>org.apache.maven.plugins</groupId>
322 <artifactId>maven-install-plugin</artifactId>
323 <version>2.1</version>
324 </plugin>
325 <plugin>
326 <groupId>org.apache.maven.plugins</groupId>
327 <artifactId>maven-deploy-plugin</artifactId>
328 <version>2.3</version>
329 </plugin>
330 <plugin>
331 <groupId>org.apache.maven.plugins</groupId>
332 <artifactId>maven-site-plugin</artifactId>
333 <version>2.0-beta-5</version>
334 </plugin>
335 <plugin>
336 <groupId>org.apache.maven.plugins</groupId>
337 <artifactId>maven-project-info-reports-plugin</artifactId>
338 <version>2.0.1</version>
339 </plugin>
340 <plugin>
341 <groupId>org.apache.maven.plugins</groupId>
342 <artifactId>maven-jxr-plugin</artifactId>
343 <version>2.1</version>
344 </plugin>
345 <plugin>
346 <groupId>org.apache.maven.plugins</groupId>
347 <artifactId>maven-surefire-report-plugin</artifactId>
348 <version>2.3</version>
349 </plugin>
350 <plugin>
351 <groupId>org.apache.maven.plugins</groupId>
352 <artifactId>maven-javadoc-plugin</artifactId>
353 <version>2.2</version>
354 </plugin>
355 </plugins>
356 </pluginManagement>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000357 <plugins>
358 <plugin>
359 <groupId>org.apache.maven.plugins</groupId>
360 <artifactId>maven-compiler-plugin</artifactId>
361 <configuration>
362 <target>1.4</target>
363 </configuration>
364 </plugin>
365 <plugin>
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-surefire-plugin</artifactId>
368 </plugin>
Stephane Frenotab672472006-08-29 13:29:31 +0000369 <!-- plugin>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000370 <groupId>org.apache.maven.plugins</groupId>
371 <artifactId>maven-surefire-report-plugin</artifactId>
Stephane Frenotab672472006-08-29 13:29:31 +0000372 </plugin -->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000373 </plugins>
374 </build>
375 <reporting>
376 <plugins>
377 <plugin>
378 <groupId>org.apache.maven.plugins</groupId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000379 <artifactId>maven-site-plugin</artifactId>
380 <configuration>
Marcel Offermans5dcb02c2006-08-17 20:58:34 +0000381 <templateDirectory>${user.dir}/src/site/</templateDirectory>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000382 <template>maven-site.vm</template>
383 </configuration>
Karl Paulsd69e8af2006-08-12 09:51:20 +0000384 </plugin>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000385 <plugin>
386 <groupId>org.apache.maven.plugins</groupId>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000387 <artifactId>maven-surefire-report-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000388 </plugin>
389 <plugin>
Richard S. Hall061dffd2007-04-28 15:11:03 +0000390 <groupId>org.apache.maven.plugins</groupId>
391 <artifactId>maven-jxr-plugin</artifactId>
Marcel Offermans0ed87292006-08-17 19:10:30 +0000392 </plugin>
393 <plugin>
394 <groupId>org.apache.maven.plugins</groupId>
395 <artifactId>maven-project-info-reports-plugin</artifactId>
396 <reportSets>
397 <reportSet>
398 <reports>
399 <report>index</report>
400 <report>dependencies</report>
401 <report>project-team</report>
402 <report>mailing-list</report>
403 <report>issue-tracking</report>
404 <report>license</report>
405 <report>scm</report>
406 </reports>
407 </reportSet>
408 </reportSets>
409 </plugin>
410 <!--plugin>
411 <groupId>org.apache.maven.plugins</groupId>
412 <artifactId>maven-javadoc-plugin</artifactId>
413 <configuration>
414 <aggregate>true</aggregate>
415 </configuration>
416 </plugin-->
Karl Paulsd69e8af2006-08-12 09:51:20 +0000417 </plugins>
418 </reporting>
419</project>