blob: 712d4724ac635ad937e0afea5f0f14f8278ea380 [file] [log] [blame]
Guillaume Nodet916f28a2009-09-22 09:11:12 +00001<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">
Guillaume Nodet91fab3b2009-04-27 10:01:58 +00002
3 <!--
4
5 Licensed to the Apache Software Foundation (ASF) under one or more
6 contributor license agreements. See the NOTICE file distributed with
7 this work for additional information regarding copyright ownership.
8 The ASF licenses this file to You under the Apache License, Version 2.0
9 (the "License"); you may not use this file except in compliance with
10 the License. You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19 -->
20
21 <modelVersion>4.0.0</modelVersion>
22
23 <parent>
Gert Vanthienen607b8522009-05-02 19:57:13 +000024 <groupId>org.apache.felix.karaf</groupId>
Freeman Yue Fang3eb6d292009-05-14 06:16:32 +000025 <artifactId>karaf</artifactId>
Guillaume Nodet3e933802010-05-20 16:41:24 +000026 <version>1.6.0</version>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000027 </parent>
28
Gert Vanthienen607b8522009-05-02 19:57:13 +000029 <groupId>org.apache.felix.karaf</groupId>
30 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000031 <packaging>bundle</packaging>
Guillaume Nodet3e933802010-05-20 16:41:24 +000032 <version>1.6.0</version>
Gert Vanthienen607b8522009-05-02 19:57:13 +000033 <name>Apache Felix Karaf :: Main</name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000034
Guillaume Nodet91a52c02009-09-18 20:14:54 +000035 <properties>
36 <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory>
37 </properties>
38
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000039 <dependencies>
40 <dependency>
Guillaume Nodet350b1502009-05-05 15:46:15 +000041 <groupId>org.eclipse</groupId>
42 <artifactId>osgi</artifactId>
43 <scope>provided</scope>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000044 </dependency>
45 <dependency>
46 <groupId>org.apache.felix</groupId>
Guillaume Nodet350b1502009-05-05 15:46:15 +000047 <artifactId>org.apache.felix.framework</artifactId>
48 <scope>provided</scope>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000049 </dependency>
50 <dependency>
51 <groupId>org.apache.servicemix.bundles</groupId>
52 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
53 <scope>test</scope>
54 </dependency>
55 </dependencies>
56 <build>
57 <plugins>
58 <plugin>
59 <groupId>org.apache.felix</groupId>
60 <artifactId>maven-bundle-plugin</artifactId>
61 <configuration>
62 <instructions>
63 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Gert Vanthienen607b8522009-05-02 19:57:13 +000064 <Main-Class>org.apache.felix.karaf.main.Main</Main-Class>
Guillaume Nodet874ecc82009-05-04 07:56:47 +000065 <Bundle-Name>Apache Felix Karaf</Bundle-Name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000066 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
Chris Custine8764d8f2010-05-16 08:24:14 +000067 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
68 <Export-Package>org.apache.felix.karaf.main.spi.*;version=${project.version}</Export-Package>
Guillaume Nodet350b1502009-05-05 15:46:15 +000069 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000070 <Private-Package>
Guillaume Nodet350b1502009-05-05 15:46:15 +000071 org.apache.felix.*;-split-package:=merge-first,
72 org.eclipse.*;-split-package:=merge-first,
73 org.osgi.*;-split-package:=merge-first,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000074 META-INF;-split-package:=merge-first
75 </Private-Package>
76 <Import-Package>!*</Import-Package>
Guillaume Nodet350b1502009-05-05 15:46:15 +000077 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000078 </instructions>
79 <unpackBundle>true</unpackBundle>
80 </configuration>
81 </plugin>
Guillaume Nodet350b1502009-05-05 15:46:15 +000082 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000083 <plugin>
84 <groupId>org.apache.maven.plugins</groupId>
85 <artifactId>maven-shade-plugin</artifactId>
86 <executions>
87 <execution>
88 <phase>package</phase>
89 <goals>
90 <goal>shade</goal>
91 </goals>
92 <configuration>
93 <artifactSet>
94 <includes>
Guillaume Nodet350b1502009-05-05 15:46:15 +000095 <include>org.eclipse:osgi</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000096 <include>org.apache.felix:org.apache.felix.framework</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000097 <include>${project.groupId}:${project.artifactId}</include>
98 </includes>
99 </artifactSet>
100 <filters>
101 <filter>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000102 <artifact>org.eclipse:osgi</artifact>
103 <includes>
104 <include>org/osgi/**</include>
105 <include>org/eclipse/**</include>
106 <include>hookconfigurators.properties</include>
107 </includes>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000108 </filter>
109 <filter>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000110 <artifact>org.apache.felix:org.apache.felix.framework</artifact>
111 <includes>
112 <include>org/apache/felix/**</include>
113 </includes>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000114 </filter>
115 </filters>
116 <createSourcesJar>${createSourcesJar}</createSourcesJar>
117 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
118 <createDependencyReducedPom>true</createDependencyReducedPom>
119 </configuration>
120 </execution>
121 </executions>
122 </plugin>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000123 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000124 </plugins>
125 <resources>
126 <resource>
127 <directory>src/main/resources</directory>
128 <filtering>true</filtering>
129 </resource>
130 </resources>
131 </build>
132
133 <profiles>
134 <profile>
135 <id>deploy</id>
136 <properties>
137 <createSourcesJar>true</createSourcesJar>
138 </properties>
139 <build>
140 <plugins>
141 <plugin>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-dependency-plugin</artifactId>
144 <executions>
145 <execution>
146 <id>unpack-sources</id>
147 <phase>generate-sources</phase>
148 <goals>
149 <goal>unpack</goal>
150 </goals>
151 <configuration>
152 <artifactItems>
153 <artifactItem>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000154 <groupId>org.eclipse</groupId>
155 <artifactId>osgi</artifactId>
156 <classifier>sources</classifier>
157 </artifactItem>
158 <artifactItem>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000159 <groupId>org.apache.felix</groupId>
160 <artifactId>org.osgi.core</artifactId>
161 <classifier>sources</classifier>
162 </artifactItem>
163 <artifactItem>
164 <groupId>org.apache.felix</groupId>
165 <artifactId>org.apache.felix.framework</artifactId>
166 <classifier>sources</classifier>
167 </artifactItem>
168 </artifactItems>
169 <outputDirectory>${project.build.directory}/sources</outputDirectory>
170 </configuration>
171 </execution>
172 </executions>
173 </plugin>
174 <plugin>
175 <groupId>org.apache.maven.plugins</groupId>
176 <artifactId>maven-source-plugin</artifactId>
177 <executions>
178 <execution>
179 <id>attach-sources</id>
180 <phase>process-classes</phase>
181 <goals>
182 <goal>jar</goal>
183 </goals>
184 </execution>
185 </executions>
186 </plugin>
187 <plugin>
188 <groupId>org.apache.maven.plugins</groupId>
189 <artifactId>maven-javadoc-plugin</artifactId>
190 <executions>
191 <execution>
192 <id>package</id>
193 <phase>package</phase>
194 <goals>
195 <goal>jar</goal>
196 </goals>
197 </execution>
198 </executions>
199 <configuration>
200 <minmemory>128m</minmemory>
201 <maxmemory>512m</maxmemory>
202 <sourcepath>${project.build.directory}/sources</sourcepath>
203 </configuration>
204 </plugin>
205 </plugins>
206 </build>
207 </profile>
208 </profiles>
209
210</project>