blob: d5bbd25228e3a643929d3639e7e5189ccda9208f [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. Hall8baa5932006-12-06 15:53:52 +000023 <version>0.9.0-incubator-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>
Richard S. Hallc2c58042006-11-28 20:50:51 +000034 <exclusions>
35 <exclusion>
36 <groupId>${pom.groupId}</groupId>
37 <artifactId>org.osgi.core</artifactId>
38 </exclusion>
39 </exclusions>
Alex Karasulu07d20492006-03-06 15:35:44 +000040 </dependency>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000041 <dependency>
42 <groupId>${pom.groupId}</groupId>
43 <artifactId>org.apache.felix.shell</artifactId>
44 <version>${pom.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000045 <exclusions>
46 <exclusion>
47 <groupId>${pom.groupId}</groupId>
48 <artifactId>org.osgi.core</artifactId>
49 </exclusion>
50 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000051 </dependency>
52 <dependency>
53 <groupId>${pom.groupId}</groupId>
54 <artifactId>org.apache.felix.shell.tui</artifactId>
55 <version>${pom.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000056 <exclusions>
57 <exclusion>
58 <groupId>${pom.groupId}</groupId>
59 <artifactId>org.osgi.core</artifactId>
60 </exclusion>
61 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000062 </dependency>
63 <dependency>
64 <groupId>${pom.groupId}</groupId>
65 <artifactId>org.apache.felix.bundlerepository</artifactId>
66 <version>${pom.version}</version>
Richard S. Hallc2c58042006-11-28 20:50:51 +000067 <exclusions>
68 <exclusion>
69 <groupId>${pom.groupId}</groupId>
70 <artifactId>org.osgi.core</artifactId>
71 </exclusion>
72 </exclusions>
Karl Pauls4d82d2f2006-11-03 00:08:28 +000073 </dependency>
Alex Karasulu07d20492006-03-06 15:35:44 +000074 </dependencies>
Alex Karasuluc15532e2006-03-06 19:42:54 +000075 <properties>
76 <property name="install.home" value="${basedir.absolutePath}"/>
77 </properties>
Alex Karasulu07d20492006-03-06 15:35:44 +000078 <build>
79 <plugins>
80 <plugin>
Richard S. Hall1da4e542006-11-02 21:45:44 +000081 <groupId>org.apache.felix</groupId>
Richard S. Hall797bc982007-05-21 18:35:07 +000082 <artifactId>maven-bundle-plugin</artifactId>
Richard S. Hall1da4e542006-11-02 21:45:44 +000083 <extensions>true</extensions>
Alex Karasulu07d20492006-03-06 15:35:44 +000084 <configuration>
Richard S. Hall1da4e542006-11-02 21:45:44 +000085 <instructions>
Richard S. Hall27305522007-03-28 15:28:25 +000086 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Richard S. Hall1da4e542006-11-02 21:45:44 +000087 <Main-Class>org.apache.felix.main.Main</Main-Class>
88 <Bundle-Name>Apache Felix</Bundle-Name>
89 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Richard S. Hall0e096d92007-05-07 20:46:52 +000090 <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</Private-Package>
Richard S. Hall1da4e542006-11-02 21:45:44 +000091 <Import-Package>!*</Import-Package>
92 <Include-Resource>{src/main/resources/}</Include-Resource>
93 </instructions>
Alex Karasulu07d20492006-03-06 15:35:44 +000094 </configuration>
95 </plugin>
Alex Karasuluc15532e2006-03-06 19:42:54 +000096 <plugin>
97 <artifactId>maven-antrun-plugin</artifactId>
98 <executions>
99 <execution>
100 <phase>install</phase>
101 <configuration>
102 <tasks>
103 <delete dir="${basedir}/bin"/>
104 <mkdir dir="${basedir}/bin"/>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000105 <delete dir="${basedir}/conf"/>
106 <mkdir dir="${basedir}/conf"/>
107 <delete dir="${basedir}/bundle"/>
108 <mkdir dir="${basedir}/bundle"/>
109<copy file="${basedir}/target/org.apache.felix.main-${pom.version}.jar"
110 tofile="${basedir}/bin/felix.jar"/>
111<copy file="${basedir}/target/classes/config.properties"
112 todir="${basedir}/conf"/>
Richard S. Hall0fcc2712006-08-01 15:22:00 +0000113<copy file="${basedir}/../shell/target/org.apache.felix.shell-${pom.version}.jar"
Alex Karasuluc15532e2006-03-06 19:42:54 +0000114 todir="${basedir}/bundle"/>
Richard S. Hall0fcc2712006-08-01 15:22:00 +0000115<copy file="${basedir}/../shell.tui/target/org.apache.felix.shell.tui-${pom.version}.jar"
Alex Karasuluc15532e2006-03-06 19:42:54 +0000116 todir="${basedir}/bundle"/>
Richard S. Hall0fcc2712006-08-01 15:22:00 +0000117<copy file="${basedir}/../bundlerepository/target/org.apache.felix.bundlerepository-${pom.version}.jar"
Richard S. Hall20f9caf2006-04-04 13:19:47 +0000118 todir="${basedir}/bundle"/>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000119 </tasks>
120 </configuration>
121 <goals>
122 <goal>run</goal>
123 </goals>
124 </execution>
125 </executions>
126 </plugin>
Alex Karasulu07d20492006-03-06 15:35:44 +0000127 </plugins>
Alex Karasuluc15532e2006-03-06 19:42:54 +0000128 <resources>
129 <resource>
130 <directory>src/main/resources</directory>
131 <filtering>true</filtering>
132 </resource>
Richard S. Hall1da4e542006-11-02 21:45:44 +0000133 </resources>
Alex Karasulu07d20492006-03-06 15:35:44 +0000134 </build>
135</project>