blob: 5cac0b4e20dfcac1364b852c05104403560eccea [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 Pauls34724e92007-09-17 22:25:00 +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 Pauls34724e92007-09-17 22:25:00 +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. Hallb35c0382007-07-16 17:29:17 +000041 <!--exclusion>
42 For now framework doesn't have this dependency, but it
43 will once the compendium bundle is released.
Richard S. Hall487c44d2007-05-22 15:58:30 +000044 <groupId>${pom.groupId}</groupId>
45 <artifactId>org.osgi.compendium</artifactId>
Richard S. Hallb35c0382007-07-16 17:29:17 +000046 </exclusion-->
Richard S. Hallc2c58042006-11-28 20:50:51 +000047 </exclusions>
Alex Karasulu07d20492006-03-06 15:35:44 +000048 </dependency>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000049 <dependency>
50 <groupId>${pom.groupId}</groupId>
51 <artifactId>org.apache.felix.shell</artifactId>
Karl Pauls34724e92007-09-17 22:25:00 +000052 <version>1.1.0-SNAPSHOT</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000053 <exclusions>
54 <exclusion>
55 <groupId>${pom.groupId}</groupId>
56 <artifactId>org.osgi.core</artifactId>
57 </exclusion>
58 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000059 </dependency>
60 <dependency>
61 <groupId>${pom.groupId}</groupId>
62 <artifactId>org.apache.felix.shell.tui</artifactId>
Karl Pauls34724e92007-09-17 22:25:00 +000063 <version>1.1.0-SNAPSHOT</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000064 <exclusions>
65 <exclusion>
66 <groupId>${pom.groupId}</groupId>
67 <artifactId>org.osgi.core</artifactId>
68 </exclusion>
69 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000070 </dependency>
71 <dependency>
72 <groupId>${pom.groupId}</groupId>
73 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls34724e92007-09-17 22:25:00 +000074 <version>1.1.0-SNAPSHOT</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000075 <exclusions>
76 <exclusion>
77 <groupId>${pom.groupId}</groupId>
78 <artifactId>org.osgi.core</artifactId>
79 </exclusion>
Richard S. Halld4d36cc2007-06-26 10:04:00 +000080 <exclusion>
81 <groupId>net.sf.kxml</groupId>
82 <artifactId>kxml2</artifactId>
83 </exclusion>
Richard S. Hallc2c58042006-11-28 20:50:51 +000084 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000085 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +000086 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +000087 <properties>
88 <property name="install.home" value="${basedir.absolutePath}"/>
89 </properties>
Alex Karasulu07d20492006-03-06 15:35:44 +000090 <build>
91 <plugins>
92 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +000093 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +000094 <artifactId>maven-bundle-plugin</artifactId>
Stuart McCulloch871e7db2007-12-20 17:03:43 +000095 <version>1.1.0-SNAPSHOT</version>
Richard S. Hall1da4e542006-11-02 21:45:44 +000096 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +000097 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +000098 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +000099 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000100 <Main-Class>org.apache.felix.main.Main</Main-Class>
101 <Bundle-Name>Apache Felix</Bundle-Name>
102 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Karl Pauls39f9e542007-09-12 18:18:40 +0000103 <Private-Package>org.apache.felix.main.*,org.apache.felix.moduleloader.*,org.apache.felix.framework.*,org.osgi.framework,org.osgi.service.packageadmin,org.osgi.service.startlevel,org.osgi.service.url,org.osgi.util.tracker</Private-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000104 <Import-Package>!*</Import-Package>
105 <Include-Resource>{src/main/resources/}</Include-Resource>
Richard S. Hallf78c6b62007-10-16 16:14:42 +0000106 <!-- Include these properties here because we want them
107 substituted in the default.properties resource file
108 so that we only have to maintain one set of properties
Richard S. Hall4d18a852007-10-16 16:17:19 +0000109 and only for that reason. -->
Richard S. Hallf78c6b62007-10-16 16:14:42 +0000110 <_include>src/main/resources/config.properties</_include>
111 <dollar>$</dollar>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000112 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +0000113 </configuration>
114 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000115 <plugin>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000116 <groupId>org.apache.maven.plugins</groupId>
117 <artifactId>maven-dependency-plugin</artifactId>
118 <executions>
119 <execution>
Karl Pauls39f9e542007-09-12 18:18:40 +0000120 <id>unpack</id>
121 <phase>validate</phase>
122 <goals>
123 <goal>unpack</goal>
124 </goals>
125 <configuration>
126 <outputDirectory>${project.build.outputDirectory}</outputDirectory>
127 <artifactItems>
128 <artifactItem>
129 <groupId>${pom.groupId}</groupId>
130 <artifactId>org.apache.felix.framework</artifactId>
Karl Pauls34724e92007-09-17 22:25:00 +0000131 <version>1.1.0-SNAPSHOT</version>
Karl Pauls39f9e542007-09-12 18:18:40 +0000132 </artifactItem>
133 </artifactItems>
134 </configuration>
135 </execution>
136 <execution>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000137 <id>copy</id>
138 <phase>install</phase>
139 <goals>
140 <goal>copy</goal>
141 </goals>
142 <configuration>
143 <artifactItems>
144 <artifactItem>
145 <groupId>${pom.groupId}</groupId>
146 <artifactId>org.apache.felix.shell</artifactId>
Karl Pauls34724e92007-09-17 22:25:00 +0000147 <version>1.1.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000148 <type>jar</type>
149 <overWrite>true</overWrite>
150 <outputDirectory>${project.build.directory}/bundle</outputDirectory >
151 </artifactItem>
152 <artifactItem>
153 <groupId>${pom.groupId}</groupId>
154 <artifactId>org.apache.felix.shell.tui</artifactId>
Karl Pauls34724e92007-09-17 22:25:00 +0000155 <version>1.1.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000156 <type>jar</type>
157 <overWrite>true</overWrite>
158 <outputDirectory>${project.build.directory}/bundle</outputDirectory >
159 </artifactItem>
160 <artifactItem>
161 <groupId>${pom.groupId}</groupId>
162 <artifactId>org.apache.felix.bundlerepository</artifactId>
Karl Pauls34724e92007-09-17 22:25:00 +0000163 <version>1.1.0-SNAPSHOT</version>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000164 <type>jar</type>
165 <overWrite>true</overWrite>
166 <outputDirectory>${project.build.directory}/bundle</outputDirectory >
167 </artifactItem>
168 </artifactItems>
169 </configuration>
170 </execution>
171 </executions>
172 </plugin>
173 <plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000174 <artifactId>maven-antrun-plugin</artifactId>
175 <executions>
176 <execution>
177 <phase>install</phase>
178 <configuration>
179 <tasks>
180 <delete dir="${basedir}/bin"/>
181 <mkdir dir="${basedir}/bin"/>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000182 <delete dir="${basedir}/conf"/>
183 <mkdir dir="${basedir}/conf"/>
184 <delete dir="${basedir}/bundle"/>
Karl Paulsaa573ad2007-07-19 19:09:54 +0000185 <copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar"
186 tofile="${basedir}/bin/felix.jar"/>
187 <copy file="${basedir}/target/classes/config.properties"
188 todir="${basedir}/conf"/>
189 <move file="${basedir}/target/bundle"
190 todir="${basedir}"/>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000191 </tasks>
192 </configuration>
193 <goals>
194 <goal>run</goal>
195 </goals>
196 </execution>
197 </executions>
198 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000199 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000200 <resources>
201 <resource>
202 <directory>src/main/resources</directory>
203 <filtering>true</filtering>
204 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000205 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000206 </build>
207</project>