blob: c62375ade91f7f22a2c461eef672eefc806ad13c [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 Pauls6d8e92a2009-05-10 22:12:22 +000030 <version>1.9.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 Pauls840c2662009-05-10 22:21:17 +000035 <version>1.9.0-SNAPSHOT</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000036 <exclusions>
37 <exclusion>
38 <groupId>${pom.groupId}</groupId>
39 <artifactId>org.osgi.core</artifactId>
40 </exclusion>
Richard S. Hall4a591ba2008-01-27 18:42:15 +000041 <exclusion>
Richard S. Hall487c44d2007-05-22 15:58:30 +000042 <groupId>${pom.groupId}</groupId>
43 <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 Pauls840c2662009-05-10 22:21:17 +000050 <version>1.3.0-SNAPSHOT</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000051 <exclusions>
52 <exclusion>
53 <groupId>${pom.groupId}</groupId>
54 <artifactId>org.osgi.core</artifactId>
55 </exclusion>
Richard S. Hall5fd43d32009-05-01 19:26:13 +000056 <exclusion>
57 <groupId>${pom.groupId}</groupId>
58 <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 Pauls840c2662009-05-10 22:21:17 +000065 <version>1.3.0-SNAPSHOT</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000066 <exclusions>
67 <exclusion>
68 <groupId>${pom.groupId}</groupId>
69 <artifactId>org.osgi.core</artifactId>
70 </exclusion>
Richard S. Hallf9bdb262009-08-03 18:24:19 +000071 <exclusion>
72 <groupId>${pom.groupId}</groupId>
73 <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 Pauls840c2662009-05-10 22:21:17 +000080 <version>1.5.0-SNAPSHOT</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>
91 <groupId>${pom.groupId}</groupId>
Richard S. Hall4a591ba2008-01-27 18:42:15 +000092 <artifactId>org.osgi.service.obr</artifactId>
93 </exclusion>
94 <exclusion>
Richard S. Halld4d36cc2007-06-26 10:04:00 +000095 <groupId>net.sf.kxml</groupId>
96 <artifactId>kxml2</artifactId>
97 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +000098 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000099 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +0000100 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000101 <properties>
Karl Pauls840c2662009-05-10 22:21:17 +0000102 <log.level>4</log.level>
Richard S. Hall726b6162008-10-09 15:54:32 +0000103 <dollar>$</dollar>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000104 </properties>
Stuart McCullochf202a822008-10-22 11:55:02 +0000105 <profiles>
106 <profile>
107 <id>release</id>
108 <properties>
Stuart McCulloch1be6aa12008-11-07 14:20:52 +0000109 <log.level>1</log.level>
Karl Pauls48d887c2009-04-26 20:54:43 +0000110 <dollar>$</dollar>
Stuart McCullochf202a822008-10-22 11:55:02 +0000111 </properties>
112 </profile>
113 </profiles>
Alex Karasulu07d20492006-03-06 15:35:44 +0000114 <build>
115 <plugins>
116 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000117 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000118 <artifactId>maven-bundle-plugin</artifactId>
Karl Pauls60946d02008-08-31 22:15:50 +0000119 <version>1.4.3</version>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000120 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000121 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000122 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +0000123 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000124 <Main-Class>org.apache.felix.main.Main</Main-Class>
Richard S. Hallf94a18f2008-09-23 16:25:54 +0000125 <Bundle-SymbolicName>org.apache.felix.main</Bundle-SymbolicName>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000126 <Bundle-Name>Apache Felix</Bundle-Name>
127 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000128 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Richard S. Hall42cf9c92008-10-16 20:22:58 +0000129 <Embed-Dependency>*;artifactId=org.apache.felix.framework;inline=true</Embed-Dependency>
130 <Private-Package>org.apache.felix.main.*</Private-Package>
Richard S. Hall28caccf2008-11-18 00:05:07 +0000131 <Export-Package>!org.osgi.service.obr,org.osgi.*</Export-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000132 <Import-Package>!*</Import-Package>
Karl Pauls210c7672008-04-22 13:11:38 +0000133 <Include-Resource>META-INF/LICENSE=LICENSE,META-INF/NOTICE=NOTICE,{src/main/resources/}</Include-Resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000134 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000135 </configuration>
136 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000137 <plugin>
Karl Pauls03c00142009-03-31 21:10:19 +0000138 <groupId>org.codehaus.mojo</groupId>
139 <artifactId>rat-maven-plugin</artifactId>
140 <configuration>
141 <excludeSubProjects>false</excludeSubProjects>
142 <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
143 <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
144 <excludes>
145 <param>doc/*</param>
146 <param>maven-eclipse.xml</param>
147 <param>.checkstyle</param>
148 <param>.externalToolBuilders/*</param>
149 </excludes>
150 </configuration>
151 </plugin>
152 <plugin>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000153 <groupId>org.apache.maven.plugins</groupId>
154 <artifactId>maven-dependency-plugin</artifactId>
155 <executions>
156 <execution>
Richard S. Hall2571b472009-07-23 17:04:08 +0000157 <id>unpack</id>
158 <phase>validate</phase>
159 <goals>
160 <goal>unpack</goal>
161 </goals>
162 <configuration>
163 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
164 <artifactItems>
165 <artifactItem>
166 <groupId>${pom.groupId}</groupId>
167 <artifactId>org.apache.felix.framework</artifactId>
168 <version>1.9.0-SNAPSHOT</version>
169 </artifactItem>
170 </artifactItems>
171 </configuration>
172 </execution>
173 <execution>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000174 <id>copy</id>
175 <phase>install</phase>
176 <goals>
177 <goal>copy</goal>
178 </goals>
179 <configuration>
180 <artifactItems>
181 <artifactItem>
182 <groupId>${pom.groupId}</groupId>
183 <artifactId>org.apache.felix.shell</artifactId>
Karl Pauls840c2662009-05-10 22:21:17 +0000184 <version>1.3.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000185 <type>jar</type>
186 <overWrite>true</overWrite>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000187 <outputDirectory>${project.build.directory}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000188 </artifactItem>
189 <artifactItem>
190 <groupId>${pom.groupId}</groupId>
191 <artifactId>org.apache.felix.shell.tui</artifactId>
Karl Pauls840c2662009-05-10 22:21:17 +0000192 <version>1.3.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000193 <type>jar</type>
194 <overWrite>true</overWrite>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000195 <outputDirectory>${project.build.directory}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000196 </artifactItem>
197 <artifactItem>
198 <groupId>${pom.groupId}</groupId>
199 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls840c2662009-05-10 22:21:17 +0000200 <version>1.5.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000201 <type>jar</type>
202 <overWrite>true</overWrite>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000203 <outputDirectory>${project.build.directory}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000204 </artifactItem>
205 </artifactItems>
206 </configuration>
207 </execution>
208 </executions>
209 </plugin>
210 <plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000211 <artifactId>maven-antrun-plugin</artifactId>
212 <executions>
213 <execution>
214 <phase>install</phase>
215 <configuration>
216 <tasks>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000217 <delete dir="${basedir}/bin" />
218 <mkdir dir="${basedir}/bin" />
219 <delete dir="${basedir}/conf" />
220 <mkdir dir="${basedir}/conf" />
221 <delete dir="${basedir}/bundle" />
222 <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar" tofile="${basedir}/bin/felix.jar" />
223 <copy file="${basedir}/target/classes/config.properties" todir="${basedir}/conf" />
224 <move file="${basedir}/target/bundle" todir="${basedir}" />
Alex Karasuluc15532e2006-03-06 19:42:54 +0000225 </tasks>
226 </configuration>
227 <goals>
228 <goal>run</goal>
229 </goals>
230 </execution>
231 </executions>
232 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000233 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000234 <resources>
235 <resource>
236 <directory>src/main/resources</directory>
237 <filtering>true</filtering>
238 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000239 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000240 </build>
Karl Pauls250a7142008-04-22 13:27:15 +0000241</project>