blob: 02c795fccd83353f17fbe25f08073348540188b9 [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-->
Alex Karasulu07d20492006-03-06 15:35:44 +000019<project>
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>
Richard S. Hall8e1e6f32006-03-09 20:37:02 +000023 <version>0.8.0-SNAPSHOT</version>
Alex Karasulu07d20492006-03-06 15:35:44 +000024 </parent>
25 <modelVersion>4.0.0</modelVersion>
Richard S. Hall1da4e542006-11-02 21:45:44 +000026 <packaging>bundle</packaging>
Alex Karasulu07d20492006-03-06 15:35:44 +000027 <name>Apache Felix Main</name>
28 <artifactId>org.apache.felix.main</artifactId>
29 <dependencies>
30 <dependency>
31 <groupId>${pom.groupId}</groupId>
32 <artifactId>org.apache.felix.framework</artifactId>
33 <version>${pom.version}</version>
34 </dependency>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000035 <dependency>
36 <groupId>${pom.groupId}</groupId>
37 <artifactId>org.apache.felix.shell</artifactId>
38 <version>${pom.version}</version>
39 </dependency>
40 <dependency>
41 <groupId>${pom.groupId}</groupId>
42 <artifactId>org.apache.felix.shell.tui</artifactId>
43 <version>${pom.version}</version>
44 </dependency>
45 <dependency>
46 <groupId>${pom.groupId}</groupId>
47 <artifactId>org.apache.felix.bundlerepository</artifactId>
48 <version>${pom.version}</version>
49 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +000050 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +000051 <properties>
52 <property name="install.home" value="${basedir.absolutePath}"/>
53 </properties>
Alex Karasulu07d20492006-03-06 15:35:44 +000054 <build>
55 <plugins>
56 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +000057 <groupId>org.apache.felix</groupId>
58 <artifactId>maven-bundle-plugin</artifactId>
59 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +000060 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +000061 <instructions>
62 <Main-Class>org.apache.felix.main.Main</Main-Class>
63 <Bundle-Name>Apache Felix</Bundle-Name>
64 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
65 <Private-Package>org.apache.felix.*,org.osgi.*</Private-Package>
66 <Import-Package>!*</Import-Package>
67 <Include-Resource>{src/main/resources/}</Include-Resource>
68 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +000069 </configuration>
70 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +000071 <plugin>
72 <artifactId>maven-antrun-plugin</artifactId>
73 <executions>
74 <execution>
75 <phase>install</phase>
76 <configuration>
77 <tasks>
78 <delete dir="${basedir}/bin"/>
79 <mkdir dir="${basedir}/bin"/>
Alex Karasuluc15532e2006-03-06 19:42:54 +000080 <delete dir="${basedir}/conf"/>
81 <mkdir dir="${basedir}/conf"/>
82 <delete dir="${basedir}/bundle"/>
83 <mkdir dir="${basedir}/bundle"/>
84<copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar"
85 tofile="${basedir}/bin/felix.jar"/>
86<copy file="${basedir}/target/classes/config.properties"
87 todir="${basedir}/conf"/>
Richard S. Hall0fcc2712006-08-01 15:22:00 +000088<copy file="${basedir}/../shell/target/org.apache.felix.shell-${pom.version}.jar"
Alex Karasuluc15532e2006-03-06 19:42:54 +000089 todir="${basedir}/bundle"/>
Richard S. Hall0fcc2712006-08-01 15:22:00 +000090<copy file="${basedir}/../shell.tui/target/org.apache.felix.shell.tui-${pom.version}.jar"
Alex Karasuluc15532e2006-03-06 19:42:54 +000091 todir="${basedir}/bundle"/>
Richard S. Hall0fcc2712006-08-01 15:22:00 +000092<copy file="${basedir}/../bundlerepository/target/org.apache.felix.bundlerepository-${pom.version}.jar"
Richard S. Hall20f9caf2006-04-04 13:19:47 +000093 todir="${basedir}/bundle"/>
Alex Karasuluc15532e2006-03-06 19:42:54 +000094 </tasks>
95 </configuration>
96 <goals>
97 <goal>run</goal>
98 </goals>
99 </execution>
100 </executions>
101 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000102 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000103 <resources>
104 <resource>
105 <directory>src/main/resources</directory>
106 <filtering>true</filtering>
107 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000108 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000109 </build>
110</project>