Carsten Ziegeler | a845c77 | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 1 | <!-- |
| 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 | --> |
| 19 | <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"> |
| 20 | <modelVersion>4.0.0</modelVersion> |
| 21 | |
| 22 | <parent> |
| 23 | <groupId>org.apache</groupId> |
| 24 | <artifactId>apache</artifactId> |
| 25 | <version>4</version> |
| 26 | </parent> |
| 27 | |
| 28 | <groupId>org.apache.felix</groupId> |
| 29 | <artifactId>reactor</artifactId> |
| 30 | <packaging>pom</packaging> |
| 31 | <name>Apache Felix</name> |
| 32 | <!-- We just increase the version each time the list of modules changes --> |
| 33 | <version>1</version> |
| 34 | <description>Apache Felix Reactor POM</description> |
| 35 | <!-- |
| 36 | Felix contains 3 custom maven packaging plugins. Each creates a jar file |
| 37 | as an artifact. |
| 38 | |
| 39 | maven-bundle-plugin |
| 40 | (bundle packaging - latest prefered plugin for generating OSGi bundles.) |
| 41 | maven-osgi-plugin |
| 42 | (osgi-bundle packaging - old plugin for generating OSGi bundles.) |
| 43 | org.apache.felix.ipojo.plugin |
| 44 | (plugin for generating iPOJO OSGi bundles.) |
| 45 | |
| 46 | But with maven bug https://issues.apache.org/jira/browse/FELIX-198 files |
| 47 | are not always created with the correct extension in the repository. |
| 48 | |
| 49 | As a work around, this pom creates different profiles for building the |
| 50 | different types of felix modules. |
| 51 | |
| 52 | Usage: |
| 53 | mvn -Dpackaging=<type> clean install |
| 54 | --> |
| 55 | |
| 56 | <profiles> |
| 57 | |
| 58 | <profile> |
| 59 | <id>packaging-plugins</id> |
| 60 | <activation> |
| 61 | <property> |
| 62 | <name>packaging</name> |
| 63 | <value>plugins</value> |
| 64 | </property> |
| 65 | </activation> |
| 66 | <modules> |
| 67 | <module>maven-obr-plugin</module> |
| 68 | <module>bundleplugin</module> |
| 69 | <module>scrplugin</module> |
| 70 | <module>tools/maven2/maven-osgi-plugin</module> |
| 71 | <!-- <module>tools/maven2/maven-felix-plugin</module> --> |
| 72 | </modules> |
| 73 | </profile> |
| 74 | |
| 75 | <profile> |
| 76 | <id>packaging-ipojo-bundle</id> |
| 77 | <activation> |
| 78 | <property> |
| 79 | <name>packaging</name> |
| 80 | <value>ipojo-bundle</value> |
| 81 | </property> |
| 82 | </activation> |
| 83 | <modules> |
| 84 | <!--<module>ipojo/arch</module>--> |
| 85 | </modules> |
| 86 | </profile> |
| 87 | |
| 88 | <profile> |
| 89 | <id>packaging-bundle</id> |
| 90 | <activation> |
| 91 | <property> |
| 92 | <name>packaging</name> |
| 93 | <value>bundle</value> |
| 94 | </property> |
| 95 | </activation> |
| 96 | <modules> |
| 97 | <module>org.osgi.foundation</module> |
| 98 | <module>javax.servlet</module> |
| 99 | <module>org.osgi.core</module> |
| 100 | <module>org.osgi.compendium</module> |
| 101 | <module>framework</module> |
| 102 | <module>main</module> |
| 103 | <module>shell</module> |
| 104 | <module>shell.tui</module> |
| 105 | <module>shell.gui</module> |
| 106 | <module>shell.gui.plugin</module> |
| 107 | <module>shell.remote</module> |
| 108 | <module>org.osgi.service.obr</module> |
| 109 | <module>bundlerepository</module> |
| 110 | <module>log</module> |
| 111 | <module>eventadmin</module> |
| 112 | <module>http.jetty</module> |
| 113 | <module>upnp</module> |
| 114 | <module>scr</module> |
| 115 | <module>configadmin</module> |
| 116 | <module>metatype</module> |
| 117 | <module>dependencymanager</module> |
| 118 | <module>dependencymanager.shell</module> |
| 119 | <module>deploymentadmin</module> |
| 120 | <module>servicebinder</module> |
| 121 | <module>wireadmin</module> |
| 122 | <module>prefs</module> |
| 123 | <module>webconsole</module> |
| 124 | <module>fileinstall</module> |
| 125 | |
| 126 | <module>ipojo</module> |
| 127 | |
| 128 | <module>mosgi</module> |
| 129 | <module>jmood</module> |
| 130 | |
| 131 | <module>examples</module> |
| 132 | </modules> |
| 133 | </profile> |
| 134 | |
| 135 | <profile> |
| 136 | <id>packaging-osgi-bundle</id> |
| 137 | <activation> |
| 138 | <property> |
| 139 | <name>packaging</name> |
| 140 | <value>osgi-bundle</value> |
| 141 | </property> |
| 142 | </activation> |
| 143 | <modules> |
| 144 | <module>org.apache.felix.daemon</module> |
| 145 | |
| 146 | <!-- <module>tools/mangen</module> --> |
| 147 | |
| 148 | |
| 149 | </modules> |
| 150 | </profile> |
| 151 | </profiles> |
| 152 | </project> |