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> |
Stuart McCulloch | 85b182c | 2009-04-18 00:58:07 +0000 | [diff] [blame] | 25 | <version>5</version> |
Carsten Ziegeler | a845c77 | 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 | 2539ada | 2009-04-08 15:53:15 +0000 | [diff] [blame] | 36 | Felix contains 2 custom maven packaging plugins. Each creates a jar file |
Carsten Ziegeler | a845c77 | 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 | a845c77 | 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> |
| 57 | <id>packaging-plugins</id> |
| 58 | <activation> |
| 59 | <property> |
| 60 | <name>packaging</name> |
| 61 | <value>plugins</value> |
| 62 | </property> |
| 63 | </activation> |
| 64 | <modules> |
| 65 | <module>maven-obr-plugin</module> |
| 66 | <module>bundleplugin</module> |
Carsten Ziegeler | 90456ac | 2009-04-18 18:03:52 +0000 | [diff] [blame] | 67 | <module>scr-annotations</module> |
Carsten Ziegeler | a845c77 | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 68 | <module>scrplugin</module> |
| 69 | <module>tools/maven2/maven-osgi-plugin</module> |
| 70 | <!-- <module>tools/maven2/maven-felix-plugin</module> --> |
| 71 | </modules> |
| 72 | </profile> |
| 73 | |
| 74 | <profile> |
| 75 | <id>packaging-ipojo-bundle</id> |
| 76 | <activation> |
| 77 | <property> |
| 78 | <name>packaging</name> |
| 79 | <value>ipojo-bundle</value> |
| 80 | </property> |
| 81 | </activation> |
| 82 | <modules> |
| 83 | <!--<module>ipojo/arch</module>--> |
| 84 | </modules> |
| 85 | </profile> |
| 86 | |
| 87 | <profile> |
| 88 | <id>packaging-bundle</id> |
| 89 | <activation> |
| 90 | <property> |
| 91 | <name>packaging</name> |
| 92 | <value>bundle</value> |
| 93 | </property> |
| 94 | </activation> |
| 95 | <modules> |
| 96 | <module>org.osgi.foundation</module> |
| 97 | <module>javax.servlet</module> |
| 98 | <module>org.osgi.core</module> |
| 99 | <module>org.osgi.compendium</module> |
| 100 | <module>framework</module> |
| 101 | <module>main</module> |
| 102 | <module>shell</module> |
| 103 | <module>shell.tui</module> |
| 104 | <module>shell.gui</module> |
| 105 | <module>shell.gui.plugin</module> |
| 106 | <module>shell.remote</module> |
| 107 | <module>org.osgi.service.obr</module> |
| 108 | <module>bundlerepository</module> |
| 109 | <module>log</module> |
| 110 | <module>eventadmin</module> |
Sten Roger Sandvik | f52abb8 | 2009-09-14 10:42:08 +0000 | [diff] [blame] | 111 | <module>http</module> |
| 112 | <!--module>http.jetty</module--> |
Carsten Ziegeler | a845c77 | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 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> |
Richard S. Hall | ea7f848 | 2009-05-01 00:12:10 +0000 | [diff] [blame] | 119 | <module>deploymentadmin</module> |
Carsten Ziegeler | a845c77 | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 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> |
Clement Escoffier | 2539ada | 2009-04-08 15:53:15 +0000 | [diff] [blame] | 130 | |
| 131 | <module>transaction</module> |
Carsten Ziegeler | a845c77 | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 132 | |
| 133 | <module>examples</module> |
| 134 | </modules> |
| 135 | </profile> |
| 136 | |
| 137 | <profile> |
| 138 | <id>packaging-osgi-bundle</id> |
| 139 | <activation> |
| 140 | <property> |
| 141 | <name>packaging</name> |
| 142 | <value>osgi-bundle</value> |
| 143 | </property> |
| 144 | </activation> |
| 145 | <modules> |
| 146 | <module>org.apache.felix.daemon</module> |
| 147 | |
| 148 | <!-- <module>tools/mangen</module> --> |
| 149 | |
| 150 | |
| 151 | </modules> |
| 152 | </profile> |
Guillaume Nodet | 3bf1c87 | 2009-08-10 16:57:09 +0000 | [diff] [blame] | 153 | |
| 154 | <profile> |
| 155 | <id>packaging-karaf</id> |
| 156 | <activation> |
| 157 | <property> |
| 158 | <name>packaging</name> |
| 159 | <value>karaf</value> |
| 160 | </property> |
| 161 | </activation> |
| 162 | <modules> |
| 163 | <module>karaf</module> |
| 164 | </modules> |
| 165 | </profile> |
| 166 | |
Carsten Ziegeler | a845c77 | 2009-03-10 07:30:54 +0000 | [diff] [blame] | 167 | </profiles> |
| 168 | </project> |