Karl Pauls | dbc43eb | 2008-04-22 15:36:51 +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 | --> |
Carsten Ziegeler | 4fec096 | 2008-01-11 16:13:31 +0000 | [diff] [blame] | 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"> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 20 | <parent> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 21 | <groupId>org.apache.felix</groupId> |
Karl Pauls | 4d95e90 | 2009-05-10 22:09:56 +0000 | [diff] [blame] | 22 | <artifactId>felix-parent</artifactId> |
| 23 | <version>1.2.0</version> |
Karl Pauls | 589e2b3 | 2007-07-11 18:29:29 +0000 | [diff] [blame] | 24 | <relativePath>../pom/pom.xml</relativePath> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 25 | </parent> |
| 26 | <modelVersion>4.0.0</modelVersion> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 27 | <packaging>bundle</packaging> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 28 | <name>Apache Felix Main</name> |
| 29 | <artifactId>org.apache.felix.main</artifactId> |
Karl Pauls | 1846879 | 2009-11-01 19:40:15 +0000 | [diff] [blame] | 30 | <version>2.1.0-SNAPSHOT</version> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 31 | <dependencies> |
| 32 | <dependency> |
| 33 | <groupId>${pom.groupId}</groupId> |
| 34 | <artifactId>org.apache.felix.framework</artifactId> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 35 | <version>${pom.version}</version> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 36 | <exclusions> |
| 37 | <exclusion> |
Karl Pauls | 6eb9283 | 2009-09-30 21:05:27 +0000 | [diff] [blame] | 38 | <groupId>org.osgi</groupId> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 39 | <artifactId>org.osgi.core</artifactId> |
| 40 | </exclusion> |
Richard S. Hall | 4a591ba | 2008-01-27 18:42:15 +0000 | [diff] [blame] | 41 | <exclusion> |
Karl Pauls | 6eb9283 | 2009-09-30 21:05:27 +0000 | [diff] [blame] | 42 | <groupId>org.osgi</groupId> |
Richard S. Hall | 487c44d | 2007-05-22 15:58:30 +0000 | [diff] [blame] | 43 | <artifactId>org.osgi.compendium</artifactId> |
Richard S. Hall | 4a591ba | 2008-01-27 18:42:15 +0000 | [diff] [blame] | 44 | </exclusion> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 45 | </exclusions> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 46 | </dependency> |
Karl Pauls | 4d82d2f | 2006-11-03 00:08:28 +0000 | [diff] [blame] | 47 | <dependency> |
| 48 | <groupId>${pom.groupId}</groupId> |
| 49 | <artifactId>org.apache.felix.shell</artifactId> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 50 | <version>${shell.version}</version> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 51 | <exclusions> |
| 52 | <exclusion> |
Karl Pauls | 6eb9283 | 2009-09-30 21:05:27 +0000 | [diff] [blame] | 53 | <groupId>org.osgi</groupId> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 54 | <artifactId>org.osgi.core</artifactId> |
| 55 | </exclusion> |
Richard S. Hall | fc8f303 | 2009-05-01 19:26:13 +0000 | [diff] [blame] | 56 | <exclusion> |
Karl Pauls | 6eb9283 | 2009-09-30 21:05:27 +0000 | [diff] [blame] | 57 | <groupId>org.osgi</groupId> |
Richard S. Hall | fc8f303 | 2009-05-01 19:26:13 +0000 | [diff] [blame] | 58 | <artifactId>org.osgi.compendium</artifactId> |
| 59 | </exclusion> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 60 | </exclusions> |
Karl Pauls | 4d82d2f | 2006-11-03 00:08:28 +0000 | [diff] [blame] | 61 | </dependency> |
| 62 | <dependency> |
| 63 | <groupId>${pom.groupId}</groupId> |
| 64 | <artifactId>org.apache.felix.shell.tui</artifactId> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 65 | <version>${shell.tui.version}</version> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 66 | <exclusions> |
| 67 | <exclusion> |
Karl Pauls | 74869f2 | 2009-10-02 15:52:43 +0000 | [diff] [blame] | 68 | <groupId>org.osgi</groupId> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 69 | <artifactId>org.osgi.core</artifactId> |
| 70 | </exclusion> |
Richard S. Hall | 5fd6cb6 | 2009-08-03 18:24:19 +0000 | [diff] [blame] | 71 | <exclusion> |
Karl Pauls | 74869f2 | 2009-10-02 15:52:43 +0000 | [diff] [blame] | 72 | <groupId>org.osgi</groupId> |
Richard S. Hall | 5fd6cb6 | 2009-08-03 18:24:19 +0000 | [diff] [blame] | 73 | <artifactId>org.osgi.compendium</artifactId> |
| 74 | </exclusion> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 75 | </exclusions> |
Karl Pauls | 4d82d2f | 2006-11-03 00:08:28 +0000 | [diff] [blame] | 76 | </dependency> |
| 77 | <dependency> |
| 78 | <groupId>${pom.groupId}</groupId> |
| 79 | <artifactId>org.apache.felix.bundlerepository</artifactId> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 80 | <version>${obr.version}</version> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 81 | <exclusions> |
| 82 | <exclusion> |
| 83 | <groupId>${pom.groupId}</groupId> |
| 84 | <artifactId>org.osgi.core</artifactId> |
| 85 | </exclusion> |
Richard S. Hall | d4d36cc | 2007-06-26 10:04:00 +0000 | [diff] [blame] | 86 | <exclusion> |
Richard S. Hall | 4a591ba | 2008-01-27 18:42:15 +0000 | [diff] [blame] | 87 | <groupId>${pom.groupId}</groupId> |
Richard S. Hall | 5fd6cb6 | 2009-08-03 18:24:19 +0000 | [diff] [blame] | 88 | <artifactId>org.osgi.compendium</artifactId> |
| 89 | </exclusion> |
| 90 | <exclusion> |
Karl Pauls | 6eb9283 | 2009-09-30 21:05:27 +0000 | [diff] [blame] | 91 | <groupId>org.osgi</groupId> |
| 92 | <artifactId>org.osgi.core</artifactId> |
| 93 | </exclusion> |
| 94 | <exclusion> |
| 95 | <groupId>org.osgi</groupId> |
| 96 | <artifactId>org.osgi.compendium</artifactId> |
| 97 | </exclusion> |
| 98 | <exclusion> |
Richard S. Hall | 5fd6cb6 | 2009-08-03 18:24:19 +0000 | [diff] [blame] | 99 | <groupId>${pom.groupId}</groupId> |
Richard S. Hall | 4a591ba | 2008-01-27 18:42:15 +0000 | [diff] [blame] | 100 | <artifactId>org.osgi.service.obr</artifactId> |
| 101 | </exclusion> |
| 102 | <exclusion> |
Richard S. Hall | d4d36cc | 2007-06-26 10:04:00 +0000 | [diff] [blame] | 103 | <groupId>net.sf.kxml</groupId> |
| 104 | <artifactId>kxml2</artifactId> |
| 105 | </exclusion> |
Richard S. Hall | c2c5804 | 2006-11-28 20:50:51 +0000 | [diff] [blame] | 106 | </exclusions> |
Karl Pauls | 4d82d2f | 2006-11-03 00:08:28 +0000 | [diff] [blame] | 107 | </dependency> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 108 | </dependencies> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 109 | <properties> |
Karl Pauls | f77974e | 2009-11-01 19:48:10 +0000 | [diff] [blame] | 110 | <log.level>4</log.level> |
Richard S. Hall | f3ce002 | 2008-10-09 15:54:32 +0000 | [diff] [blame] | 111 | <dollar>$</dollar> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 112 | <shell.version>1.4.1</shell.version> |
| 113 | <shell.tui.version>1.4.1</shell.tui.version> |
| 114 | <obr.version>1.4.2</obr.version> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 115 | </properties> |
Stuart McCulloch | c0a68ae | 2008-10-22 11:55:02 +0000 | [diff] [blame] | 116 | <profiles> |
| 117 | <profile> |
| 118 | <id>release</id> |
| 119 | <properties> |
Karl Pauls | af293a3 | 2009-11-01 19:35:18 +0000 | [diff] [blame] | 120 | <log.level>1</log.level> |
Karl Pauls | 40cda5f | 2009-04-26 20:54:43 +0000 | [diff] [blame] | 121 | <dollar>$</dollar> |
Stuart McCulloch | c0a68ae | 2008-10-22 11:55:02 +0000 | [diff] [blame] | 122 | </properties> |
| 123 | </profile> |
| 124 | </profiles> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 125 | <build> |
| 126 | <plugins> |
| 127 | <plugin> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 128 | <groupId>org.apache.felix</groupId> |
Richard S. Hall | 797bc98 | 2007-05-21 18:35:07 +0000 | [diff] [blame] | 129 | <artifactId>maven-bundle-plugin</artifactId> |
Karl Pauls | 993c1dd | 2009-10-11 19:40:40 +0000 | [diff] [blame] | 130 | <version>1.4.3</version> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 131 | <extensions>true</extensions> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 132 | <configuration> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 133 | <instructions> |
Richard S. Hall | 2730552 | 2007-03-28 15:28:25 +0000 | [diff] [blame] | 134 | <_donotcopy>(CVS|.svn|config.properties)</_donotcopy> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 135 | <Main-Class>org.apache.felix.main.Main</Main-Class> |
Richard S. Hall | 41d5d33 | 2008-09-23 16:25:54 +0000 | [diff] [blame] | 136 | <Bundle-SymbolicName>org.apache.felix.main</Bundle-SymbolicName> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 137 | <Bundle-Name>Apache Felix</Bundle-Name> |
| 138 | <Bundle-Description>OSGi R4 framework.</Bundle-Description> |
Carsten Ziegeler | 90f0b9f | 2008-04-17 06:33:59 +0000 | [diff] [blame] | 139 | <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor> |
Richard S. Hall | 8155b23 | 2008-10-16 20:22:58 +0000 | [diff] [blame] | 140 | <Embed-Dependency>*;artifactId=org.apache.felix.framework;inline=true</Embed-Dependency> |
| 141 | <Private-Package>org.apache.felix.main.*</Private-Package> |
Karl Pauls | 74869f2 | 2009-10-02 15:52:43 +0000 | [diff] [blame] | 142 | <Export-Package>!org.osgi.service.log, !org.osgi.service.obr,org.osgi.*</Export-Package> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 143 | <Import-Package>!*</Import-Package> |
Karl Pauls | 5b146bc | 2008-04-22 13:11:38 +0000 | [diff] [blame] | 144 | <Include-Resource>META-INF/LICENSE=LICENSE,META-INF/NOTICE=NOTICE,{src/main/resources/}</Include-Resource> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 145 | </instructions> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 146 | </configuration> |
| 147 | </plugin> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 148 | <plugin> |
Karl Pauls | a559c11 | 2009-03-31 21:10:19 +0000 | [diff] [blame] | 149 | <groupId>org.codehaus.mojo</groupId> |
| 150 | <artifactId>rat-maven-plugin</artifactId> |
| 151 | <configuration> |
| 152 | <excludeSubProjects>false</excludeSubProjects> |
| 153 | <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes> |
| 154 | <useMavenDefaultExcludes>true</useMavenDefaultExcludes> |
| 155 | <excludes> |
| 156 | <param>doc/*</param> |
| 157 | <param>maven-eclipse.xml</param> |
| 158 | <param>.checkstyle</param> |
| 159 | <param>.externalToolBuilders/*</param> |
| 160 | </excludes> |
| 161 | </configuration> |
| 162 | </plugin> |
| 163 | <plugin> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 164 | <groupId>org.apache.maven.plugins</groupId> |
| 165 | <artifactId>maven-dependency-plugin</artifactId> |
| 166 | <executions> |
| 167 | <execution> |
Richard S. Hall | d78b685 | 2009-07-23 17:04:08 +0000 | [diff] [blame] | 168 | <id>unpack</id> |
| 169 | <phase>validate</phase> |
| 170 | <goals> |
| 171 | <goal>unpack</goal> |
| 172 | </goals> |
| 173 | <configuration> |
| 174 | <outputDirectory>${project.build.outputDirectory}</outputDirectory> |
| 175 | <artifactItems> |
| 176 | <artifactItem> |
| 177 | <groupId>${pom.groupId}</groupId> |
| 178 | <artifactId>org.apache.felix.framework</artifactId> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 179 | <version>${pom.version}</version> |
Richard S. Hall | d78b685 | 2009-07-23 17:04:08 +0000 | [diff] [blame] | 180 | </artifactItem> |
| 181 | </artifactItems> |
| 182 | </configuration> |
| 183 | </execution> |
| 184 | <execution> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 185 | <id>copy</id> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 186 | <phase>package</phase> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 187 | <goals> |
| 188 | <goal>copy</goal> |
| 189 | </goals> |
| 190 | <configuration> |
| 191 | <artifactItems> |
| 192 | <artifactItem> |
| 193 | <groupId>${pom.groupId}</groupId> |
| 194 | <artifactId>org.apache.felix.shell</artifactId> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 195 | <version>${shell.version}</version> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 196 | <type>jar</type> |
| 197 | <overWrite>true</overWrite> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 198 | <outputDirectory>${project.basedir}/bundle</outputDirectory> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 199 | </artifactItem> |
| 200 | <artifactItem> |
| 201 | <groupId>${pom.groupId}</groupId> |
| 202 | <artifactId>org.apache.felix.shell.tui</artifactId> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 203 | <version>${shell.tui.version}</version> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 204 | <type>jar</type> |
| 205 | <overWrite>true</overWrite> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 206 | <outputDirectory>${project.basedir}/bundle</outputDirectory> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 207 | </artifactItem> |
| 208 | <artifactItem> |
| 209 | <groupId>${pom.groupId}</groupId> |
| 210 | <artifactId>org.apache.felix.bundlerepository</artifactId> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 211 | <version>${obr.version}</version> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 212 | <type>jar</type> |
| 213 | <overWrite>true</overWrite> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 214 | <outputDirectory>${project.basedir}/bundle</outputDirectory> |
Karl Pauls | aa573ad | 2007-07-19 19:09:54 +0000 | [diff] [blame] | 215 | </artifactItem> |
| 216 | </artifactItems> |
| 217 | </configuration> |
| 218 | </execution> |
| 219 | </executions> |
| 220 | </plugin> |
| 221 | <plugin> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 222 | <artifactId>maven-antrun-plugin</artifactId> |
| 223 | <executions> |
| 224 | <execution> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 225 | <phase>package</phase> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 226 | <configuration> |
| 227 | <tasks> |
Karl Pauls | 35e237d | 2008-04-22 13:13:49 +0000 | [diff] [blame] | 228 | <delete dir="${basedir}/bin" /> |
| 229 | <mkdir dir="${basedir}/bin" /> |
| 230 | <delete dir="${basedir}/conf" /> |
| 231 | <mkdir dir="${basedir}/conf" /> |
Karl Pauls | 35e237d | 2008-04-22 13:13:49 +0000 | [diff] [blame] | 232 | <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar" tofile="${basedir}/bin/felix.jar" /> |
| 233 | <copy file="${basedir}/target/classes/config.properties" todir="${basedir}/conf" /> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 234 | </tasks> |
| 235 | </configuration> |
| 236 | <goals> |
| 237 | <goal>run</goal> |
| 238 | </goals> |
| 239 | </execution> |
| 240 | </executions> |
| 241 | </plugin> |
Karl Pauls | f4ca94b | 2010-02-04 21:25:09 +0000 | [diff] [blame] | 242 | <plugin> |
| 243 | <artifactId>maven-assembly-plugin</artifactId> |
| 244 | <executions> |
| 245 | <execution> |
| 246 | <id>assemble</id> |
| 247 | <phase>package</phase> |
| 248 | <goals> |
| 249 | <goal>single</goal> |
| 250 | </goals> |
| 251 | <configuration> |
| 252 | <descriptors> |
| 253 | <descriptor>assembly.xml</descriptor> |
| 254 | </descriptors> |
| 255 | <appendAssemblyId>false</appendAssemblyId> |
| 256 | <finalName>felix-framework-${pom.version}</finalName> |
| 257 | </configuration> |
| 258 | </execution> |
| 259 | </executions> |
| 260 | </plugin> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 261 | </plugins> |
Alex Karasulu | c15532e | 2006-03-06 19:42:54 +0000 | [diff] [blame] | 262 | <resources> |
| 263 | <resource> |
| 264 | <directory>src/main/resources</directory> |
| 265 | <filtering>true</filtering> |
| 266 | </resource> |
Richard S. Hall | 1da4e54 | 2006-11-02 21:45:44 +0000 | [diff] [blame] | 267 | </resources> |
Alex Karasulu | 07d2049 | 2006-03-06 15:35:44 +0000 | [diff] [blame] | 268 | </build> |
Karl Pauls | 5066dab | 2008-04-22 13:27:15 +0000 | [diff] [blame] | 269 | </project> |