blob: 48a2522075736b430f417b5c91529e71bf0b3453 [file] [log] [blame]
Karl Pauls5c093752008-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 Pauls040e4322009-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 Paulsace6c682010-02-04 23:43:25 +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 Pauls911d47b2010-02-04 23:19:54 +000035 <version>${framework.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000036 <exclusions>
37 <exclusion>
Karl Pauls1d7fb592009-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 Pauls1d7fb592009-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>
48 <groupId>${pom.groupId}</groupId>
49 <artifactId>org.apache.felix.shell</artifactId>
Karl Pauls72502b92010-02-04 21:25:09 +000050 <version>${shell.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000051 <exclusions>
52 <exclusion>
Karl Pauls1d7fb592009-09-30 21:05:27 +000053 <groupId>org.osgi</groupId>
Richard S. Hallc2c58042006-11-28 20:50:51 +000054 <artifactId>org.osgi.core</artifactId>
55 </exclusion>
Richard S. Hall5fd43d32009-05-01 19:26:13 +000056 <exclusion>
Karl Pauls1d7fb592009-09-30 21:05:27 +000057 <groupId>org.osgi</groupId>
Richard S. Hall5fd43d32009-05-01 19:26:13 +000058 <artifactId>org.osgi.compendium</artifactId>
59 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +000060 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000061 </dependency>
62 <dependency>
63 <groupId>${pom.groupId}</groupId>
64 <artifactId>org.apache.felix.shell.tui</artifactId>
Karl Pauls72502b92010-02-04 21:25:09 +000065 <version>${shell.tui.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000066 <exclusions>
67 <exclusion>
Karl Pauls32154c72009-10-02 15:52:43 +000068 <groupId>org.osgi</groupId>
Richard S. Hallc2c58042006-11-28 20:50:51 +000069 <artifactId>org.osgi.core</artifactId>
70 </exclusion>
Richard S. Hallf9bdb262009-08-03 18:24:19 +000071 <exclusion>
Karl Pauls32154c72009-10-02 15:52:43 +000072 <groupId>org.osgi</groupId>
Richard S. Hallf9bdb262009-08-03 18:24:19 +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>
79 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls72502b92010-02-04 21:25:09 +000080 <version>${obr.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000081 <exclusions>
82 <exclusion>
83 <groupId>${pom.groupId}</groupId>
84 <artifactId>org.osgi.core</artifactId>
85 </exclusion>
Richard S. Halld4d36cc2007-06-26 10:04:00 +000086 <exclusion>
Richard S. Hall4a591ba2008-01-27 18:42:15 +000087 <groupId>${pom.groupId}</groupId>
Richard S. Hallf9bdb262009-08-03 18:24:19 +000088 <artifactId>org.osgi.compendium</artifactId>
89 </exclusion>
90 <exclusion>
Karl Pauls1d7fb592009-09-30 21:05:27 +000091 <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. Hallf9bdb262009-08-03 18:24:19 +000099 <groupId>${pom.groupId}</groupId>
Richard S. Hall4a591ba2008-01-27 18:42:15 +0000100 <artifactId>org.osgi.service.obr</artifactId>
101 </exclusion>
102 <exclusion>
Richard S. Halld4d36cc2007-06-26 10:04:00 +0000103 <groupId>net.sf.kxml</groupId>
104 <artifactId>kxml2</artifactId>
105 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +0000106 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +0000107 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +0000108 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000109 <properties>
Karl Pauls9f610e52009-11-01 19:48:10 +0000110 <log.level>4</log.level>
Richard S. Hall726b6162008-10-09 15:54:32 +0000111 <dollar>$</dollar>
Karl Paulse19c3022010-02-04 23:53:41 +0000112 <framework.version>2.1.0-SNAPSHOT</framework.version>
Karl Pauls72502b92010-02-04 21:25:09 +0000113 <shell.version>1.4.1</shell.version>
114 <shell.tui.version>1.4.1</shell.tui.version>
Karl Paulse19c3022010-02-04 23:53:41 +0000115 <obr.version>1.5.0-SNAPSHOT</obr.version>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000116 </properties>
Stuart McCullochf202a822008-10-22 11:55:02 +0000117 <profiles>
118 <profile>
119 <id>release</id>
120 <properties>
Karl Pauls46d13742009-11-01 19:35:18 +0000121 <log.level>1</log.level>
Karl Pauls48d887c2009-04-26 20:54:43 +0000122 <dollar>$</dollar>
Stuart McCullochf202a822008-10-22 11:55:02 +0000123 </properties>
124 </profile>
125 </profiles>
Alex Karasulu07d20492006-03-06 15:35:44 +0000126 <build>
127 <plugins>
128 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000129 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000130 <artifactId>maven-bundle-plugin</artifactId>
Karl Paulsb5448cb2009-10-11 19:40:40 +0000131 <version>1.4.3</version>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000132 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000133 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000134 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +0000135 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000136 <Main-Class>org.apache.felix.main.Main</Main-Class>
Richard S. Hallf94a18f2008-09-23 16:25:54 +0000137 <Bundle-SymbolicName>org.apache.felix.main</Bundle-SymbolicName>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000138 <Bundle-Name>Apache Felix</Bundle-Name>
139 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000140 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Richard S. Hall42cf9c92008-10-16 20:22:58 +0000141 <Embed-Dependency>*;artifactId=org.apache.felix.framework;inline=true</Embed-Dependency>
142 <Private-Package>org.apache.felix.main.*</Private-Package>
Karl Pauls32154c72009-10-02 15:52:43 +0000143 <Export-Package>!org.osgi.service.log, !org.osgi.service.obr,org.osgi.*</Export-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000144 <Import-Package>!*</Import-Package>
Karl Pauls210c7672008-04-22 13:11:38 +0000145 <Include-Resource>META-INF/LICENSE=LICENSE,META-INF/NOTICE=NOTICE,{src/main/resources/}</Include-Resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000146 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000147 </configuration>
148 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000149 <plugin>
Karl Pauls03c00142009-03-31 21:10:19 +0000150 <groupId>org.codehaus.mojo</groupId>
151 <artifactId>rat-maven-plugin</artifactId>
152 <configuration>
153 <excludeSubProjects>false</excludeSubProjects>
154 <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
155 <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
156 <excludes>
157 <param>doc/*</param>
158 <param>maven-eclipse.xml</param>
159 <param>.checkstyle</param>
160 <param>.externalToolBuilders/*</param>
161 </excludes>
162 </configuration>
163 </plugin>
164 <plugin>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000165 <groupId>org.apache.maven.plugins</groupId>
166 <artifactId>maven-dependency-plugin</artifactId>
167 <executions>
168 <execution>
Richard S. Hall2571b472009-07-23 17:04:08 +0000169 <id>unpack</id>
170 <phase>validate</phase>
171 <goals>
172 <goal>unpack</goal>
173 </goals>
174 <configuration>
175 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
176 <artifactItems>
177 <artifactItem>
178 <groupId>${pom.groupId}</groupId>
179 <artifactId>org.apache.felix.framework</artifactId>
Karl Pauls911d47b2010-02-04 23:19:54 +0000180 <version>${framework.version}</version>
Richard S. Hall2571b472009-07-23 17:04:08 +0000181 </artifactItem>
182 </artifactItems>
183 </configuration>
184 </execution>
185 <execution>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000186 <id>copy</id>
Karl Pauls72502b92010-02-04 21:25:09 +0000187 <phase>package</phase>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000188 <goals>
189 <goal>copy</goal>
190 </goals>
191 <configuration>
192 <artifactItems>
193 <artifactItem>
194 <groupId>${pom.groupId}</groupId>
195 <artifactId>org.apache.felix.shell</artifactId>
Karl Pauls72502b92010-02-04 21:25:09 +0000196 <version>${shell.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000197 <type>jar</type>
198 <overWrite>true</overWrite>
Karl Pauls72502b92010-02-04 21:25:09 +0000199 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000200 </artifactItem>
201 <artifactItem>
202 <groupId>${pom.groupId}</groupId>
203 <artifactId>org.apache.felix.shell.tui</artifactId>
Karl Pauls72502b92010-02-04 21:25:09 +0000204 <version>${shell.tui.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000205 <type>jar</type>
206 <overWrite>true</overWrite>
Karl Pauls72502b92010-02-04 21:25:09 +0000207 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000208 </artifactItem>
209 <artifactItem>
210 <groupId>${pom.groupId}</groupId>
211 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls72502b92010-02-04 21:25:09 +0000212 <version>${obr.version}</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000213 <type>jar</type>
214 <overWrite>true</overWrite>
Karl Pauls72502b92010-02-04 21:25:09 +0000215 <outputDirectory>${project.basedir}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000216 </artifactItem>
217 </artifactItems>
218 </configuration>
219 </execution>
220 </executions>
221 </plugin>
222 <plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000223 <artifactId>maven-antrun-plugin</artifactId>
224 <executions>
225 <execution>
Karl Pauls72502b92010-02-04 21:25:09 +0000226 <phase>package</phase>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000227 <configuration>
228 <tasks>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000229 <delete dir="${basedir}/bin" />
230 <mkdir dir="${basedir}/bin" />
231 <delete dir="${basedir}/conf" />
232 <mkdir dir="${basedir}/conf" />
Karl Pauls2b8bd372008-04-22 13:13:49 +0000233 <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar" tofile="${basedir}/bin/felix.jar" />
234 <copy file="${basedir}/target/classes/config.properties" todir="${basedir}/conf" />
Alex Karasuluc15532e2006-03-06 19:42:54 +0000235 </tasks>
236 </configuration>
237 <goals>
238 <goal>run</goal>
239 </goals>
240 </execution>
241 </executions>
242 </plugin>
Karl Pauls72502b92010-02-04 21:25:09 +0000243 <plugin>
244 <artifactId>maven-assembly-plugin</artifactId>
245 <executions>
246 <execution>
247 <id>assemble</id>
248 <phase>package</phase>
249 <goals>
250 <goal>single</goal>
251 </goals>
252 <configuration>
253 <descriptors>
254 <descriptor>assembly.xml</descriptor>
255 </descriptors>
256 <appendAssemblyId>false</appendAssemblyId>
Karl Pauls911d47b2010-02-04 23:19:54 +0000257 <finalName>felix-framework-${framework.version}</finalName>
Karl Pauls72502b92010-02-04 21:25:09 +0000258 </configuration>
259 </execution>
260 </executions>
261 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000262 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000263 <resources>
264 <resource>
265 <directory>src/main/resources</directory>
266 <filtering>true</filtering>
267 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000268 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000269 </build>
Karl Pauls247b3bb2010-02-04 23:38:41 +0000270
271 <scm>
272 <connection>scm:svn:https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.main-2.0.3</connection>
273 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.main-2.0.3</developerConnection>
274 <url>scm:svn:https://svn.apache.org/repos/asf/felix/releases/org.apache.felix.main-2.0.3</url>
275 </scm>
Karl Pauls250a7142008-04-22 13:27:15 +0000276</project>