blob: 7f995686fe7adc6526853cda5615ed716012afdb [file] [log] [blame]
Karl Paulsdbc43eb2008-04-22 15:36:51 +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-->
Carsten Ziegeler4fec0962008-01-11 16:13:31 +000019<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 Karasuluc15532e2006-03-06 19:42:54 +000020 <parent>
Alex Karasulu07d20492006-03-06 15:35:44 +000021 <groupId>org.apache.felix</groupId>
Karl Pauls4d95e902009-05-10 22:09:56 +000022 <artifactId>felix-parent</artifactId>
23 <version>1.2.0</version>
Karl Pauls589e2b32007-07-11 18:29:29 +000024 <relativePath>../pom/pom.xml</relativePath>
Alex Karasulu07d20492006-03-06 15:35:44 +000025 </parent>
26 <modelVersion>4.0.0</modelVersion>
Richard S. Hall1da4e542006-11-02 21:45:44 +000027 <packaging>bundle</packaging>
Alex Karasulu07d20492006-03-06 15:35:44 +000028 <name>Apache Felix Main</name>
29 <artifactId>org.apache.felix.main</artifactId>
Karl Pauls2a8827e2010-02-15 00:00:19 +000030 <version>2.1.0-SNAPSHOT</version>
Alex Karasulu07d20492006-03-06 15:35:44 +000031 <dependencies>
32 <dependency>
33 <groupId>${pom.groupId}</groupId>
34 <artifactId>org.apache.felix.framework</artifactId>
Karl Pauls53fb3122010-02-04 23:19:54 +000035 <version>${framework.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000036 <exclusions>
37 <exclusion>
Karl Pauls6eb92832009-09-30 21:05:27 +000038 <groupId>org.osgi</groupId>
Richard S. Hallc2c58042006-11-28 20:50:51 +000039 <artifactId>org.osgi.core</artifactId>
40 </exclusion>
Richard S. Hall4a591ba2008-01-27 18:42:15 +000041 <exclusion>
Karl Pauls6eb92832009-09-30 21:05:27 +000042 <groupId>org.osgi</groupId>
Richard S. Hall487c44d2007-05-22 15:58:30 +000043 <artifactId>org.osgi.compendium</artifactId>
Richard S. Hall4a591ba2008-01-27 18:42:15 +000044 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +000045 </exclusions>
Alex Karasulu07d20492006-03-06 15:35:44 +000046 </dependency>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000047 <dependency>
Richard S. Hall22b907c2010-05-05 15:21:54 +000048 <groupId>${pom.groupId}.gogo</groupId>
49 <artifactId>org.apache.felix.gogo.runtime</artifactId>
50 <version>${gogo.runtime.version}</version>
51 <exclusions>
52 <exclusion>
53 <groupId>org.osgi</groupId>
54 <artifactId>org.osgi.core</artifactId>
55 </exclusion>
56 <exclusion>
57 <groupId>org.osgi</groupId>
58 <artifactId>org.osgi.compendium</artifactId>
59 </exclusion>
60 </exclusions>
61 </dependency>
62 <dependency>
63 <groupId>${pom.groupId}.gogo</groupId>
64 <artifactId>org.apache.felix.gogo.console</artifactId>
65 <version>${gogo.console.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000066 <exclusions>
67 <exclusion>
Karl Pauls6eb92832009-09-30 21:05:27 +000068 <groupId>org.osgi</groupId>
Richard S. Hallc2c58042006-11-28 20:50:51 +000069 <artifactId>org.osgi.core</artifactId>
70 </exclusion>
Richard S. Hallfc8f3032009-05-01 19:26:13 +000071 <exclusion>
Karl Pauls6eb92832009-09-30 21:05:27 +000072 <groupId>org.osgi</groupId>
Richard S. Hallfc8f3032009-05-01 19:26:13 +000073 <artifactId>org.osgi.compendium</artifactId>
74 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +000075 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000076 </dependency>
77 <dependency>
78 <groupId>${pom.groupId}</groupId>
Richard S. Hall22b907c2010-05-05 15:21:54 +000079 <artifactId>org.apache.felix.gogo.felixcommands</artifactId>
80 <version>${felix.commands.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000081 <exclusions>
82 <exclusion>
Karl Pauls74869f22009-10-02 15:52:43 +000083 <groupId>org.osgi</groupId>
Richard S. Hallc2c58042006-11-28 20:50:51 +000084 <artifactId>org.osgi.core</artifactId>
85 </exclusion>
Richard S. Hall5fd6cb62009-08-03 18:24:19 +000086 <exclusion>
Karl Pauls74869f22009-10-02 15:52:43 +000087 <groupId>org.osgi</groupId>
Richard S. Hall5fd6cb62009-08-03 18:24:19 +000088 <artifactId>org.osgi.compendium</artifactId>
89 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +000090 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000091 </dependency>
92 <dependency>
93 <groupId>${pom.groupId}</groupId>
94 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Paulsf4ca94b2010-02-04 21:25:09 +000095 <version>${obr.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000096 <exclusions>
97 <exclusion>
98 <groupId>${pom.groupId}</groupId>
99 <artifactId>org.osgi.core</artifactId>
100 </exclusion>
Richard S. Halld4d36cc2007-06-26 10:04:00 +0000101 <exclusion>
Richard S. Hall4a591ba2008-01-27 18:42:15 +0000102 <groupId>${pom.groupId}</groupId>
Richard S. Hall5fd6cb62009-08-03 18:24:19 +0000103 <artifactId>org.osgi.compendium</artifactId>
104 </exclusion>
105 <exclusion>
Karl Pauls6eb92832009-09-30 21:05:27 +0000106 <groupId>org.osgi</groupId>
107 <artifactId>org.osgi.core</artifactId>
108 </exclusion>
109 <exclusion>
110 <groupId>org.osgi</groupId>
111 <artifactId>org.osgi.compendium</artifactId>
112 </exclusion>
113 <exclusion>
Richard S. Hall5fd6cb62009-08-03 18:24:19 +0000114 <groupId>${pom.groupId}</groupId>
Richard S. Hall4a591ba2008-01-27 18:42:15 +0000115 <artifactId>org.osgi.service.obr</artifactId>
116 </exclusion>
117 <exclusion>
Richard S. Halld4d36cc2007-06-26 10:04:00 +0000118 <groupId>net.sf.kxml</groupId>
119 <artifactId>kxml2</artifactId>
120 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +0000121 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +0000122 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +0000123 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000124 <properties>
Karl Paulsf77974e2009-11-01 19:48:10 +0000125 <log.level>4</log.level>
Richard S. Hallf3ce0022008-10-09 15:54:32 +0000126 <dollar>$</dollar>
Karl Paulsaa7405f2010-02-15 00:22:51 +0000127 <framework.version>2.1.0-SNAPSHOT</framework.version>
Richard S. Hall22b907c2010-05-05 15:21:54 +0000128 <gogo.runtime.version>0.5.0-SNAPSHOT</gogo.runtime.version>
129 <gogo.console.version>0.5.0-SNAPSHOT</gogo.console.version>
130 <felix.commands.version>0.9.0-SNAPSHOT</felix.commands.version>
Karl Paulsc82557f2010-02-14 22:31:19 +0000131 <obr.version>1.4.3</obr.version>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000132 </properties>
Stuart McCullochc0a68ae2008-10-22 11:55:02 +0000133 <profiles>
134 <profile>
135 <id>release</id>
136 <properties>
Karl Paulsaf293a32009-11-01 19:35:18 +0000137 <log.level>1</log.level>
Karl Pauls40cda5f2009-04-26 20:54:43 +0000138 <dollar>$</dollar>
Stuart McCullochc0a68ae2008-10-22 11:55:02 +0000139 </properties>
140 </profile>
141 </profiles>
Alex Karasulu07d20492006-03-06 15:35:44 +0000142 <build>
143 <plugins>
144 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000145 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000146 <artifactId>maven-bundle-plugin</artifactId>
Karl Pauls993c1dd2009-10-11 19:40:40 +0000147 <version>1.4.3</version>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000148 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000149 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000150 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +0000151 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000152 <Main-Class>org.apache.felix.main.Main</Main-Class>
Richard S. Hall41d5d332008-09-23 16:25:54 +0000153 <Bundle-SymbolicName>org.apache.felix.main</Bundle-SymbolicName>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000154 <Bundle-Name>Apache Felix</Bundle-Name>
155 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Carsten Ziegeler90f0b9f2008-04-17 06:33:59 +0000156 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Richard S. Hall8155b232008-10-16 20:22:58 +0000157 <Embed-Dependency>*;artifactId=org.apache.felix.framework;inline=true</Embed-Dependency>
158 <Private-Package>org.apache.felix.main.*</Private-Package>
Karl Pauls74869f22009-10-02 15:52:43 +0000159 <Export-Package>!org.osgi.service.log, !org.osgi.service.obr,org.osgi.*</Export-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000160 <Import-Package>!*</Import-Package>
Karl Pauls5b146bc2008-04-22 13:11:38 +0000161 <Include-Resource>META-INF/LICENSE=LICENSE,META-INF/NOTICE=NOTICE,{src/main/resources/}</Include-Resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000162 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000163 </configuration>
164 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000165 <plugin>
Karl Paulsa559c112009-03-31 21:10:19 +0000166 <groupId>org.codehaus.mojo</groupId>
167 <artifactId>rat-maven-plugin</artifactId>
168 <configuration>
169 <excludeSubProjects>false</excludeSubProjects>
170 <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
171 <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
172 <excludes>
173 <param>doc/*</param>
174 <param>maven-eclipse.xml</param>
175 <param>.checkstyle</param>
176 <param>.externalToolBuilders/*</param>
177 </excludes>
178 </configuration>
179 </plugin>
180 <plugin>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000181 <groupId>org.apache.maven.plugins</groupId>
182 <artifactId>maven-dependency-plugin</artifactId>
183 <executions>
184 <execution>
Richard S. Halld78b6852009-07-23 17:04:08 +0000185 <id>unpack</id>
186 <phase>validate</phase>
187 <goals>
188 <goal>unpack</goal>
189 </goals>
190 <configuration>
191 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
192 <artifactItems>
193 <artifactItem>
194 <groupId>${pom.groupId}</groupId>
195 <artifactId>org.apache.felix.framework</artifactId>
Karl Pauls53fb3122010-02-04 23:19:54 +0000196 <version>${framework.version}</version>
Richard S. Halld78b6852009-07-23 17:04:08 +0000197 </artifactItem>
198 </artifactItems>
199 </configuration>
200 </execution>
201 <execution>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000202 <id>copy</id>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000203 <phase>package</phase>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000204 <goals>
205 <goal>copy</goal>
206 </goals>
207 <configuration>
208 <artifactItems>
209 <artifactItem>
Richard S. Hall22b907c2010-05-05 15:21:54 +0000210 <groupId>${pom.groupId}.gogo</groupId>
211 <artifactId>org.apache.felix.gogo.runtime</artifactId>
212 <version>${gogo.runtime.version}</version>
213 <type>jar</type>
214 <overWrite>true</overWrite>
215 <outputDirectory>${project.basedir}/bundle</outputDirectory>
216 </artifactItem>
217 <artifactItem>
218 <groupId>${pom.groupId}.gogo</groupId>
219 <artifactId>org.apache.felix.gogo.console</artifactId>
220 <version>${gogo.console.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000221 <type>jar</type>
222 <overWrite>true</overWrite>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000223 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000224 </artifactItem>
225 <artifactItem>
226 <groupId>${pom.groupId}</groupId>
Richard S. Hall22b907c2010-05-05 15:21:54 +0000227 <artifactId>org.apache.felix.gogo.felixcommands</artifactId>
228 <version>${felix.commands.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000229 <type>jar</type>
230 <overWrite>true</overWrite>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000231 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000232 </artifactItem>
233 <artifactItem>
234 <groupId>${pom.groupId}</groupId>
235 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000236 <version>${obr.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000237 <type>jar</type>
238 <overWrite>true</overWrite>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000239 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000240 </artifactItem>
241 </artifactItems>
242 </configuration>
243 </execution>
244 </executions>
245 </plugin>
246 <plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000247 <artifactId>maven-antrun-plugin</artifactId>
248 <executions>
249 <execution>
Karl Paulsf4ca94b2010-02-04 21:25:09 +0000250 <phase>package</phase>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000251 <configuration>
252 <tasks>
Karl Pauls35e237d2008-04-22 13:13:49 +0000253 <delete dir="${basedir}/bin" />
254 <mkdir dir="${basedir}/bin" />
255 <delete dir="${basedir}/conf" />
256 <mkdir dir="${basedir}/conf" />
Karl Pauls35e237d2008-04-22 13:13:49 +0000257 <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar" tofile="${basedir}/bin/felix.jar" />
258 <copy file="${basedir}/target/classes/config.properties" todir="${basedir}/conf" />
Alex Karasuluc15532e2006-03-06 19:42:54 +0000259 </tasks>
260 </configuration>
261 <goals>
262 <goal>run</goal>
263 </goals>
264 </execution>
265 </executions>
266 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000267 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000268 <resources>
269 <resource>
270 <directory>src/main/resources</directory>
271 <filtering>true</filtering>
272 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000273 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000274 </build>
Karl Pauls5066dab2008-04-22 13:27:15 +0000275</project>