blob: 39a4ae168ce4656b1f8e588e63f6f3bcd2aa5f75 [file] [log] [blame]
Karl Pauls4ebe5082006-10-30 15:00:08 +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 Pauls13fa6982008-01-28 09:45:41 +000030 <version>1.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 Pauls13fa6982008-01-28 09:45:41 +000035 <version>1.1.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>
Stefano Lenzi10fad492008-02-18 12:13:54 +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>
Stefano Lenzi10fad492008-02-18 12:13:54 +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 Pauls13fa6982008-01-28 09:45:41 +000072 <version>1.1.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>
90 <property name="install.home" value="${basedir.absolutePath}"/>
91 </properties>
Alex Karasulu07d20492006-03-06 15:35:44 +000092 <build>
93 <plugins>
94 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +000095 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +000096 <artifactId>maven-bundle-plugin</artifactId>
Stuart McCulloch876ca722008-02-26 17:15:42 +000097 <version>1.4.0</version>
Richard S. Hall1da4e542006-11-02 21:45:44 +000098 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +000099 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000100 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +0000101 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000102 <Main-Class>org.apache.felix.main.Main</Main-Class>
103 <Bundle-Name>Apache Felix</Bundle-Name>
104 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Carsten Ziegelercf6e51b2008-04-17 06:33:59 +0000105 <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
Karl Pauls929bd6a2008-01-27 21:07:25 +0000106 <Private-Package>org.apache.felix.main.*,org.apache.felix.moduleloader.*;-split-package:=merge-first,org.apache.felix.framework.*;-split-package:=merge-first,org.osgi.framework;-split-package:=merge-first,org.osgi.service.packageadmin;-split-package:=merge-first,org.osgi.service.startlevel;-split-package:=merge-first,org.osgi.service.url;-split-package:=merge-first,org.osgi.util.tracker;-split-package:=merge-first</Private-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000107 <Import-Package>!*</Import-Package>
108 <Include-Resource>{src/main/resources/}</Include-Resource>
Richard S. Hallf78c6b62007-10-16 16:14:42 +0000109 <!-- Include these properties here because we want them
110 substituted in the default.properties resource file
111 so that we only have to maintain one set of properties
Richard S. Hall4d18a852007-10-16 16:17:19 +0000112 and only for that reason. -->
Richard S. Hallf78c6b62007-10-16 16:14:42 +0000113 <_include>src/main/resources/config.properties</_include>
114 <dollar>$</dollar>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000115 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000116 </configuration>
117 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000118 <plugin>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000119 <groupId>org.apache.maven.plugins</groupId>
120 <artifactId>maven-dependency-plugin</artifactId>
121 <executions>
122 <execution>
Karl Pauls39f9e542007-09-12 18:18:40 +0000123 <id>unpack</id>
124 <phase>validate</phase>
125 <goals>
126 <goal>unpack</goal>
127 </goals>
128 <configuration>
129 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
130 <artifactItems>
131 <artifactItem>
132 <groupId>${pom.groupId}</groupId>
133 <artifactId>org.apache.felix.framework</artifactId>
Karl Pauls13fa6982008-01-28 09:45:41 +0000134 <version>1.1.0-SNAPSHOT</version>
Karl Pauls39f9e542007-09-12 18:18:40 +0000135 </artifactItem>
136 </artifactItems>
137 </configuration>
138 </execution>
139 <execution>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000140 <id>copy</id>
141 <phase>install</phase>
142 <goals>
143 <goal>copy</goal>
144 </goals>
145 <configuration>
146 <artifactItems>
147 <artifactItem>
148 <groupId>${pom.groupId}</groupId>
149 <artifactId>org.apache.felix.shell</artifactId>
Stefano Lenzi10fad492008-02-18 12:13:54 +0000150 <version>1.1.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000151 <type>jar</type>
152 <overWrite>true</overWrite>
153 <outputDirectory>${project.build.directory}/bundle</outputDirectory >
154 </artifactItem>
155 <artifactItem>
156 <groupId>${pom.groupId}</groupId>
157 <artifactId>org.apache.felix.shell.tui</artifactId>
Stefano Lenzi10fad492008-02-18 12:13:54 +0000158 <version>1.1.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000159 <type>jar</type>
160 <overWrite>true</overWrite>
161 <outputDirectory>${project.build.directory}/bundle</outputDirectory >
162 </artifactItem>
163 <artifactItem>
164 <groupId>${pom.groupId}</groupId>
165 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls13fa6982008-01-28 09:45:41 +0000166 <version>1.1.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000167 <type>jar</type>
168 <overWrite>true</overWrite>
169 <outputDirectory>${project.build.directory}/bundle</outputDirectory >
170 </artifactItem>
171 </artifactItems>
172 </configuration>
173 </execution>
174 </executions>
175 </plugin>
176 <plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000177 <artifactId>maven-antrun-plugin</artifactId>
178 <executions>
179 <execution>
180 <phase>install</phase>
181 <configuration>
182 <tasks>
183 <delete dir="${basedir}/bin"/>
184 <mkdir dir="${basedir}/bin"/>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000185 <delete dir="${basedir}/conf"/>
186 <mkdir dir="${basedir}/conf"/>
187 <delete dir="${basedir}/bundle"/>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000188 <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar"
189 tofile="${basedir}/bin/felix.jar"/>
190 <copy file="${basedir}/target/classes/config.properties"
191 todir="${basedir}/conf"/>
192 <move file="${basedir}/target/bundle"
193 todir="${basedir}"/>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000194 </tasks>
195 </configuration>
196 <goals>
197 <goal>run</goal>
198 </goals>
199 </execution>
200 </executions>
201 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000202 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000203 <resources>
204 <resource>
205 <directory>src/main/resources</directory>
206 <filtering>true</filtering>
207 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000208 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000209 </build>
210</project>