blob: 7070f72af95bb177f663722ed376959be94a3b26 [file] [log] [blame]
Guillaume Nodet05fac962009-04-27 10:01:58 +00001<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
4 <!--
5
6 Licensed to the Apache Software Foundation (ASF) under one or more
7 contributor license agreements. See the NOTICE file distributed with
8 this work for additional information regarding copyright ownership.
9 The ASF licenses this file to You under the Apache License, Version 2.0
10 (the "License"); you may not use this file except in compliance with
11 the License. You may obtain a copy of the License at
12
13 http://www.apache.org/licenses/LICENSE-2.0
14
15 Unless required by applicable law or agreed to in writing, software
16 distributed under the License is distributed on an "AS IS" BASIS,
17 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 See the License for the specific language governing permissions and
19 limitations under the License.
20 -->
21
22 <modelVersion>4.0.0</modelVersion>
23
24 <parent>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000025 <groupId>org.apache.felix.karaf</groupId>
Freeman Yue Fangfe865a62009-05-14 06:16:32 +000026 <artifactId>karaf</artifactId>
Guillaume Nodetadc9d282009-08-25 09:03:55 +000027 <version>0.9.0-SNAPSHOT</version>
Guillaume Nodet05fac962009-04-27 10:01:58 +000028 </parent>
29
Gert Vanthienenf54a8392009-05-02 19:57:13 +000030 <groupId>org.apache.felix.karaf</groupId>
31 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000032 <packaging>bundle</packaging>
Guillaume Nodetadc9d282009-08-25 09:03:55 +000033 <version>0.9.0-SNAPSHOT</version>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000034 <name>Apache Felix Karaf :: Main</name>
Guillaume Nodet05fac962009-04-27 10:01:58 +000035
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +000036 <properties>
37 <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory>
38 </properties>
39
Guillaume Nodet05fac962009-04-27 10:01:58 +000040 <dependencies>
41 <dependency>
Guillaume Nodetb417d982009-05-05 15:46:15 +000042 <groupId>org.eclipse</groupId>
43 <artifactId>osgi</artifactId>
44 <scope>provided</scope>
Guillaume Nodet05fac962009-04-27 10:01:58 +000045 </dependency>
46 <dependency>
47 <groupId>org.apache.felix</groupId>
Guillaume Nodetb417d982009-05-05 15:46:15 +000048 <artifactId>org.apache.felix.framework</artifactId>
49 <scope>provided</scope>
Guillaume Nodet05fac962009-04-27 10:01:58 +000050 </dependency>
51 <dependency>
52 <groupId>org.apache.servicemix.bundles</groupId>
53 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
54 <scope>test</scope>
55 </dependency>
56 </dependencies>
57 <build>
58 <plugins>
59 <plugin>
60 <groupId>org.apache.felix</groupId>
61 <artifactId>maven-bundle-plugin</artifactId>
62 <configuration>
63 <instructions>
64 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000065 <Main-Class>org.apache.felix.karaf.main.Main</Main-Class>
Guillaume Nodet1becb5b2009-05-04 07:56:47 +000066 <Bundle-Name>Apache Felix Karaf</Bundle-Name>
Guillaume Nodet05fac962009-04-27 10:01:58 +000067 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
68 <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
Gert Vanthienenf54a8392009-05-02 19:57:13 +000069 <Export-Package>org.apache.felix.karaf.main.spi.*;version=${pom.version}</Export-Package>
Guillaume Nodetb417d982009-05-05 15:46:15 +000070 <!--
Guillaume Nodet05fac962009-04-27 10:01:58 +000071 <Private-Package>
Guillaume Nodetb417d982009-05-05 15:46:15 +000072 org.apache.felix.*;-split-package:=merge-first,
73 org.eclipse.*;-split-package:=merge-first,
74 org.osgi.*;-split-package:=merge-first,
Guillaume Nodet05fac962009-04-27 10:01:58 +000075 META-INF;-split-package:=merge-first
76 </Private-Package>
77 <Import-Package>!*</Import-Package>
Guillaume Nodetb417d982009-05-05 15:46:15 +000078 -->
Guillaume Nodet05fac962009-04-27 10:01:58 +000079 </instructions>
80 <unpackBundle>true</unpackBundle>
81 </configuration>
82 </plugin>
Guillaume Nodetb417d982009-05-05 15:46:15 +000083 <!--
Guillaume Nodet05fac962009-04-27 10:01:58 +000084 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-shade-plugin</artifactId>
87 <executions>
88 <execution>
89 <phase>package</phase>
90 <goals>
91 <goal>shade</goal>
92 </goals>
93 <configuration>
94 <artifactSet>
95 <includes>
Guillaume Nodetb417d982009-05-05 15:46:15 +000096 <include>org.eclipse:osgi</include>
Guillaume Nodet05fac962009-04-27 10:01:58 +000097 <include>org.apache.felix:org.apache.felix.framework</include>
Guillaume Nodet05fac962009-04-27 10:01:58 +000098 <include>${project.groupId}:${project.artifactId}</include>
99 </includes>
100 </artifactSet>
101 <filters>
102 <filter>
Guillaume Nodetb417d982009-05-05 15:46:15 +0000103 <artifact>org.eclipse:osgi</artifact>
104 <includes>
105 <include>org/osgi/**</include>
106 <include>org/eclipse/**</include>
107 <include>hookconfigurators.properties</include>
108 </includes>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000109 </filter>
110 <filter>
Guillaume Nodetb417d982009-05-05 15:46:15 +0000111 <artifact>org.apache.felix:org.apache.felix.framework</artifact>
112 <includes>
113 <include>org/apache/felix/**</include>
114 </includes>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000115 </filter>
116 </filters>
117 <createSourcesJar>${createSourcesJar}</createSourcesJar>
118 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
119 <createDependencyReducedPom>true</createDependencyReducedPom>
120 </configuration>
121 </execution>
122 </executions>
123 </plugin>
Guillaume Nodetb417d982009-05-05 15:46:15 +0000124 -->
Guillaume Nodet05fac962009-04-27 10:01:58 +0000125 </plugins>
126 <resources>
127 <resource>
128 <directory>src/main/resources</directory>
129 <filtering>true</filtering>
130 </resource>
131 </resources>
132 </build>
133
134 <profiles>
135 <profile>
136 <id>deploy</id>
137 <properties>
138 <createSourcesJar>true</createSourcesJar>
139 </properties>
140 <build>
141 <plugins>
142 <plugin>
143 <groupId>org.apache.maven.plugins</groupId>
144 <artifactId>maven-dependency-plugin</artifactId>
145 <executions>
146 <execution>
147 <id>unpack-sources</id>
148 <phase>generate-sources</phase>
149 <goals>
150 <goal>unpack</goal>
151 </goals>
152 <configuration>
153 <artifactItems>
154 <artifactItem>
Guillaume Nodetb417d982009-05-05 15:46:15 +0000155 <groupId>org.eclipse</groupId>
156 <artifactId>osgi</artifactId>
157 <classifier>sources</classifier>
158 </artifactItem>
159 <artifactItem>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000160 <groupId>org.apache.felix</groupId>
161 <artifactId>org.osgi.core</artifactId>
162 <classifier>sources</classifier>
163 </artifactItem>
164 <artifactItem>
165 <groupId>org.apache.felix</groupId>
166 <artifactId>org.apache.felix.framework</artifactId>
167 <classifier>sources</classifier>
168 </artifactItem>
169 </artifactItems>
170 <outputDirectory>${project.build.directory}/sources</outputDirectory>
171 </configuration>
172 </execution>
173 </executions>
174 </plugin>
175 <plugin>
176 <groupId>org.apache.maven.plugins</groupId>
177 <artifactId>maven-source-plugin</artifactId>
178 <executions>
179 <execution>
180 <id>attach-sources</id>
181 <phase>process-classes</phase>
182 <goals>
183 <goal>jar</goal>
184 </goals>
185 </execution>
186 </executions>
187 </plugin>
188 <plugin>
189 <groupId>org.apache.maven.plugins</groupId>
190 <artifactId>maven-javadoc-plugin</artifactId>
191 <executions>
192 <execution>
193 <id>package</id>
194 <phase>package</phase>
195 <goals>
196 <goal>jar</goal>
197 </goals>
198 </execution>
199 </executions>
200 <configuration>
201 <minmemory>128m</minmemory>
202 <maxmemory>512m</maxmemory>
203 <sourcepath>${project.build.directory}/sources</sourcepath>
204 </configuration>
205 </plugin>
206 </plugins>
207 </build>
208 </profile>
209 </profiles>
210
211</project>