blob: e330223f1a4925cb7d6c9f656a5dedd6b087ca31 [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>
22 <artifactId>felix</artifactId>
Carsten Ziegeler646b9f12008-01-16 07:44:32 +000023 <version>1.0.2</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 Pauls382453b2008-12-20 17:33:31 +000030 <version>1.5.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 Pauls215bcfc2008-12-20 19:29:23 +000035 <version>1.5.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 Pauls215bcfc2008-12-20 19:29:23 +000050 <version>1.1.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>
56 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000057 </dependency>
58 <dependency>
59 <groupId>${pom.groupId}</groupId>
60 <artifactId>org.apache.felix.shell.tui</artifactId>
Karl Pauls215bcfc2008-12-20 19:29:23 +000061 <version>1.1.0-SNAPSHOT</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000062 <exclusions>
63 <exclusion>
64 <groupId>${pom.groupId}</groupId>
65 <artifactId>org.osgi.core</artifactId>
66 </exclusion>
67 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000068 </dependency>
69 <dependency>
70 <groupId>${pom.groupId}</groupId>
71 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls215bcfc2008-12-20 19:29:23 +000072 <version>1.3.0-SNAPSHOT</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000073 <exclusions>
74 <exclusion>
75 <groupId>${pom.groupId}</groupId>
76 <artifactId>org.osgi.core</artifactId>
77 </exclusion>
Richard S. Halld4d36cc2007-06-26 10:04:00 +000078 <exclusion>
Richard S. Hall4a591ba2008-01-27 18:42:15 +000079 <groupId>${pom.groupId}</groupId>
80 <artifactId>org.osgi.service.obr</artifactId>
81 </exclusion>
82 <exclusion>
Richard S. Halld4d36cc2007-06-26 10:04:00 +000083 <groupId>net.sf.kxml</groupId>
84 <artifactId>kxml2</artifactId>
85 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +000086 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000087 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +000088 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +000089 <properties>
Stuart McCulloch1be6aa12008-11-07 14:20:52 +000090 <log.level>4</log.level>
Richard S. Hall726b6162008-10-09 15:54:32 +000091 <dollar>$</dollar>
Alex Karasuluc15532e2006-03-06 19:42:54 +000092 </properties>
Stuart McCullochf202a822008-10-22 11:55:02 +000093 <profiles>
94 <profile>
95 <id>release</id>
96 <properties>
Stuart McCulloch1be6aa12008-11-07 14:20:52 +000097 <log.level>1</log.level>
Stuart McCullochf202a822008-10-22 11:55:02 +000098 </properties>
99 </profile>
100 </profiles>
Alex Karasulu07d20492006-03-06 15:35:44 +0000101 <build>
102 <plugins>
103 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000104 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +0000105 <artifactId>maven-bundle-plugin</artifactId>
Karl Pauls60946d02008-08-31 22:15:50 +0000106 <version>1.4.3</version>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000107 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000108 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000109 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +0000110 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000111 <Main-Class>org.apache.felix.main.Main</Main-Class>
Richard S. Hallf94a18f2008-09-23 16:25:54 +0000112 <Bundle-SymbolicName>org.apache.felix.main</Bundle-SymbolicName>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000113 <Bundle-Name>Apache Felix</Bundle-Name>
114 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000115 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Richard S. Hall42cf9c92008-10-16 20:22:58 +0000116 <Embed-Dependency>*;artifactId=org.apache.felix.framework;inline=true</Embed-Dependency>
117 <Private-Package>org.apache.felix.main.*</Private-Package>
Richard S. Hall28caccf2008-11-18 00:05:07 +0000118 <Export-Package>!org.osgi.service.obr,org.osgi.*</Export-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000119 <Import-Package>!*</Import-Package>
Karl Pauls210c7672008-04-22 13:11:38 +0000120 <Include-Resource>META-INF/LICENSE=LICENSE,META-INF/NOTICE=NOTICE,{src/main/resources/}</Include-Resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000121 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000122 </configuration>
123 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000124 <plugin>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000125 <groupId>org.apache.maven.plugins</groupId>
126 <artifactId>maven-dependency-plugin</artifactId>
127 <executions>
128 <execution>
Karl Pauls39f9e542007-09-12 18:18:40 +0000129 <id>unpack</id>
130 <phase>validate</phase>
131 <goals>
132 <goal>unpack</goal>
133 </goals>
134 <configuration>
135 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
136 <artifactItems>
137 <artifactItem>
138 <groupId>${pom.groupId}</groupId>
139 <artifactId>org.apache.felix.framework</artifactId>
Karl Pauls215bcfc2008-12-20 19:29:23 +0000140 <version>1.5.0-SNAPSHOT</version>
Karl Pauls39f9e542007-09-12 18:18:40 +0000141 </artifactItem>
142 </artifactItems>
143 </configuration>
144 </execution>
145 <execution>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000146 <id>copy</id>
147 <phase>install</phase>
148 <goals>
149 <goal>copy</goal>
150 </goals>
151 <configuration>
152 <artifactItems>
153 <artifactItem>
154 <groupId>${pom.groupId}</groupId>
155 <artifactId>org.apache.felix.shell</artifactId>
Karl Pauls215bcfc2008-12-20 19:29:23 +0000156 <version>1.1.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000157 <type>jar</type>
158 <overWrite>true</overWrite>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000159 <outputDirectory>${project.build.directory}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000160 </artifactItem>
161 <artifactItem>
162 <groupId>${pom.groupId}</groupId>
163 <artifactId>org.apache.felix.shell.tui</artifactId>
Karl Pauls215bcfc2008-12-20 19:29:23 +0000164 <version>1.1.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000165 <type>jar</type>
166 <overWrite>true</overWrite>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000167 <outputDirectory>${project.build.directory}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000168 </artifactItem>
169 <artifactItem>
170 <groupId>${pom.groupId}</groupId>
171 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls215bcfc2008-12-20 19:29:23 +0000172 <version>1.3.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000173 <type>jar</type>
174 <overWrite>true</overWrite>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000175 <outputDirectory>${project.build.directory}/bundle</outputDirectory>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000176 </artifactItem>
177 </artifactItems>
178 </configuration>
179 </execution>
180 </executions>
181 </plugin>
182 <plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000183 <artifactId>maven-antrun-plugin</artifactId>
184 <executions>
185 <execution>
186 <phase>install</phase>
187 <configuration>
188 <tasks>
Karl Pauls2b8bd372008-04-22 13:13:49 +0000189 <delete dir="${basedir}/bin" />
190 <mkdir dir="${basedir}/bin" />
191 <delete dir="${basedir}/conf" />
192 <mkdir dir="${basedir}/conf" />
193 <delete dir="${basedir}/bundle" />
194 <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar" tofile="${basedir}/bin/felix.jar" />
195 <copy file="${basedir}/target/classes/config.properties" todir="${basedir}/conf" />
196 <move file="${basedir}/target/bundle" todir="${basedir}" />
Alex Karasuluc15532e2006-03-06 19:42:54 +0000197 </tasks>
198 </configuration>
199 <goals>
200 <goal>run</goal>
201 </goals>
202 </execution>
203 </executions>
204 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000205 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000206 <resources>
207 <resource>
208 <directory>src/main/resources</directory>
209 <filtering>true</filtering>
210 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000211 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000212 </build>
Karl Pauls250a7142008-04-22 13:27:15 +0000213</project>