Carsten Ziegeler | acaec1c | 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> |
Stuart McCulloch | daaa167 | 2009-04-18 00:58:07 +0000 | [diff] [blame] | 25 | <version>5</version> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 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 | <!-- |
Clement Escoffier | fc92af1 | 2009-04-08 15:53:15 +0000 | [diff] [blame] | 36 | Felix contains 2 custom maven packaging plugins. Each creates a jar file |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 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.) |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 43 | |
| 44 | But with maven bug https://issues.apache.org/jira/browse/FELIX-198 files |
| 45 | are not always created with the correct extension in the repository. |
| 46 | |
| 47 | As a work around, this pom creates different profiles for building the |
| 48 | different types of felix modules. |
| 49 | |
| 50 | Usage: |
| 51 | mvn -Dpackaging=<type> clean install |
| 52 | --> |
| 53 | |
| 54 | <profiles> |
| 55 | |
| 56 | <profile> |
Guillaume Nodet | 9c0996a | 2010-03-26 14:02:26 +0000 | [diff] [blame] | 57 | <id>packaging-obr</id> |
| 58 | <activation> |
| 59 | <property> |
| 60 | <name>packaging</name> |
| 61 | <value>obr</value> |
| 62 | </property> |
| 63 | </activation> |
| 64 | <modules> |
| 65 | <module>utils</module> |
| 66 | <module>bundlerepository</module> |
| 67 | </modules> |
| 68 | </profile> |
| 69 | |
| 70 | <profile> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 71 | <id>packaging-plugins</id> |
| 72 | <activation> |
| 73 | <property> |
| 74 | <name>packaging</name> |
| 75 | <value>plugins</value> |
| 76 | </property> |
| 77 | </activation> |
| 78 | <modules> |
| 79 | <module>maven-obr-plugin</module> |
| 80 | <module>bundleplugin</module> |
Carsten Ziegeler | e2d128d | 2009-04-18 18:03:52 +0000 | [diff] [blame] | 81 | <module>scr-annotations</module> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 82 | <module>scrplugin</module> |
| 83 | <module>tools/maven2/maven-osgi-plugin</module> |
| 84 | <!-- <module>tools/maven2/maven-felix-plugin</module> --> |
| 85 | </modules> |
| 86 | </profile> |
| 87 | |
| 88 | <profile> |
| 89 | <id>packaging-ipojo-bundle</id> |
| 90 | <activation> |
| 91 | <property> |
| 92 | <name>packaging</name> |
| 93 | <value>ipojo-bundle</value> |
| 94 | </property> |
| 95 | </activation> |
| 96 | <modules> |
| 97 | <!--<module>ipojo/arch</module>--> |
| 98 | </modules> |
| 99 | </profile> |
| 100 | |
| 101 | <profile> |
| 102 | <id>packaging-bundle</id> |
| 103 | <activation> |
| 104 | <property> |
| 105 | <name>packaging</name> |
| 106 | <value>bundle</value> |
| 107 | </property> |
| 108 | </activation> |
| 109 | <modules> |
| 110 | <module>org.osgi.foundation</module> |
| 111 | <module>javax.servlet</module> |
| 112 | <module>org.osgi.core</module> |
| 113 | <module>org.osgi.compendium</module> |
| 114 | <module>framework</module> |
| 115 | <module>main</module> |
| 116 | <module>shell</module> |
| 117 | <module>shell.tui</module> |
| 118 | <module>shell.gui</module> |
| 119 | <module>shell.gui.plugin</module> |
| 120 | <module>shell.remote</module> |
| 121 | <module>org.osgi.service.obr</module> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 122 | <module>log</module> |
| 123 | <module>eventadmin</module> |
Sten Roger Sandvik | 65cdce8 | 2009-09-14 10:42:08 +0000 | [diff] [blame] | 124 | <module>http</module> |
| 125 | <!--module>http.jetty</module--> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 126 | <module>upnp</module> |
| 127 | <module>scr</module> |
| 128 | <module>configadmin</module> |
| 129 | <module>metatype</module> |
| 130 | <module>dependencymanager</module> |
Richard S. Hall | 0ade04d | 2009-05-01 00:12:10 +0000 | [diff] [blame] | 131 | <module>deploymentadmin</module> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 132 | <module>servicebinder</module> |
| 133 | <module>wireadmin</module> |
| 134 | <module>prefs</module> |
| 135 | <module>webconsole</module> |
Carsten Ziegeler | 7a198bf | 2009-09-24 12:25:14 +0000 | [diff] [blame] | 136 | <module>webconsole-plugins/event</module> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 137 | <module>fileinstall</module> |
Richard S. Hall | b1d3701 | 2009-12-07 19:32:28 +0000 | [diff] [blame] | 138 | <module>useradmin</module> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 139 | |
| 140 | <module>ipojo</module> |
| 141 | |
| 142 | <module>mosgi</module> |
| 143 | <module>jmood</module> |
Clement Escoffier | fc92af1 | 2009-04-08 15:53:15 +0000 | [diff] [blame] | 144 | |
| 145 | <module>transaction</module> |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 146 | |
| 147 | <module>examples</module> |
| 148 | </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> |
| 160 | <module>org.apache.felix.daemon</module> |
| 161 | |
| 162 | <!-- <module>tools/mangen</module> --> |
| 163 | |
| 164 | |
| 165 | </modules> |
| 166 | </profile> |
Guillaume Nodet | 94dd438 | 2009-08-10 16:57:09 +0000 | [diff] [blame] | 167 | |
| 168 | <profile> |
| 169 | <id>packaging-karaf</id> |
| 170 | <activation> |
| 171 | <property> |
| 172 | <name>packaging</name> |
| 173 | <value>karaf</value> |
| 174 | </property> |
| 175 | </activation> |
| 176 | <modules> |
| 177 | <module>karaf</module> |
| 178 | </modules> |
| 179 | </profile> |
| 180 | |
Carsten Ziegeler | acaec1c | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 181 | </profiles> |
| 182 | </project> |