blob: 5beddd46162ae9e12ec3f5629f4549b4c946988b [file] [log] [blame]
Guillaume Nodet91fab3b2009-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 Vanthienen607b8522009-05-02 19:57:13 +000025 <groupId>org.apache.felix.karaf</groupId>
Freeman Yue Fang3eb6d292009-05-14 06:16:32 +000026 <artifactId>karaf</artifactId>
Guillaume Nodetabe56002009-08-25 09:03:55 +000027 <version>0.9.0-SNAPSHOT</version>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000028 </parent>
29
Gert Vanthienen607b8522009-05-02 19:57:13 +000030 <groupId>org.apache.felix.karaf</groupId>
31 <artifactId>org.apache.felix.karaf.main</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000032 <packaging>bundle</packaging>
Guillaume Nodetabe56002009-08-25 09:03:55 +000033 <version>0.9.0-SNAPSHOT</version>
Gert Vanthienen607b8522009-05-02 19:57:13 +000034 <name>Apache Felix Karaf :: Main</name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000035
Guillaume Nodet91a52c02009-09-18 20:14:54 +000036 <properties>
37 <appendedResourcesDirectory>${basedir}/../etc/appended-resources</appendedResourcesDirectory>
38 </properties>
39
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000040 <dependencies>
41 <dependency>
Guillaume Nodet350b1502009-05-05 15:46:15 +000042 <groupId>org.eclipse</groupId>
43 <artifactId>osgi</artifactId>
44 <scope>provided</scope>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000045 </dependency>
46 <dependency>
47 <groupId>org.apache.felix</groupId>
Guillaume Nodet350b1502009-05-05 15:46:15 +000048 <artifactId>org.apache.felix.framework</artifactId>
49 <scope>provided</scope>
Guillaume Nodet91fab3b2009-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 Vanthienen607b8522009-05-02 19:57:13 +000065 <Main-Class>org.apache.felix.karaf.main.Main</Main-Class>
Guillaume Nodet874ecc82009-05-04 07:56:47 +000066 <Bundle-Name>Apache Felix Karaf</Bundle-Name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000067 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
68 <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
Gert Vanthienen607b8522009-05-02 19:57:13 +000069 <Export-Package>org.apache.felix.karaf.main.spi.*;version=${pom.version}</Export-Package>
Guillaume Nodet91a52c02009-09-18 20:14:54 +000070 <Include-Resource>{maven-resources},META-INF/NOTICE=NOTICE</Include-Resource>
Guillaume Nodet350b1502009-05-05 15:46:15 +000071 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000072 <Private-Package>
Guillaume Nodet350b1502009-05-05 15:46:15 +000073 org.apache.felix.*;-split-package:=merge-first,
74 org.eclipse.*;-split-package:=merge-first,
75 org.osgi.*;-split-package:=merge-first,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000076 META-INF;-split-package:=merge-first
77 </Private-Package>
78 <Import-Package>!*</Import-Package>
Guillaume Nodet350b1502009-05-05 15:46:15 +000079 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000080 </instructions>
81 <unpackBundle>true</unpackBundle>
82 </configuration>
83 </plugin>
Guillaume Nodet350b1502009-05-05 15:46:15 +000084 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000085 <plugin>
86 <groupId>org.apache.maven.plugins</groupId>
87 <artifactId>maven-shade-plugin</artifactId>
88 <executions>
89 <execution>
90 <phase>package</phase>
91 <goals>
92 <goal>shade</goal>
93 </goals>
94 <configuration>
95 <artifactSet>
96 <includes>
Guillaume Nodet350b1502009-05-05 15:46:15 +000097 <include>org.eclipse:osgi</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000098 <include>org.apache.felix:org.apache.felix.framework</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000099 <include>${project.groupId}:${project.artifactId}</include>
100 </includes>
101 </artifactSet>
102 <filters>
103 <filter>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000104 <artifact>org.eclipse:osgi</artifact>
105 <includes>
106 <include>org/osgi/**</include>
107 <include>org/eclipse/**</include>
108 <include>hookconfigurators.properties</include>
109 </includes>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000110 </filter>
111 <filter>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000112 <artifact>org.apache.felix:org.apache.felix.framework</artifact>
113 <includes>
114 <include>org/apache/felix/**</include>
115 </includes>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000116 </filter>
117 </filters>
118 <createSourcesJar>${createSourcesJar}</createSourcesJar>
119 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
120 <createDependencyReducedPom>true</createDependencyReducedPom>
121 </configuration>
122 </execution>
123 </executions>
124 </plugin>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000125 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000126 </plugins>
127 <resources>
128 <resource>
129 <directory>src/main/resources</directory>
130 <filtering>true</filtering>
131 </resource>
132 </resources>
133 </build>
134
135 <profiles>
136 <profile>
137 <id>deploy</id>
138 <properties>
139 <createSourcesJar>true</createSourcesJar>
140 </properties>
141 <build>
142 <plugins>
143 <plugin>
144 <groupId>org.apache.maven.plugins</groupId>
145 <artifactId>maven-dependency-plugin</artifactId>
146 <executions>
147 <execution>
148 <id>unpack-sources</id>
149 <phase>generate-sources</phase>
150 <goals>
151 <goal>unpack</goal>
152 </goals>
153 <configuration>
154 <artifactItems>
155 <artifactItem>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000156 <groupId>org.eclipse</groupId>
157 <artifactId>osgi</artifactId>
158 <classifier>sources</classifier>
159 </artifactItem>
160 <artifactItem>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000161 <groupId>org.apache.felix</groupId>
162 <artifactId>org.osgi.core</artifactId>
163 <classifier>sources</classifier>
164 </artifactItem>
165 <artifactItem>
166 <groupId>org.apache.felix</groupId>
167 <artifactId>org.apache.felix.framework</artifactId>
168 <classifier>sources</classifier>
169 </artifactItem>
170 </artifactItems>
171 <outputDirectory>${project.build.directory}/sources</outputDirectory>
172 </configuration>
173 </execution>
174 </executions>
175 </plugin>
176 <plugin>
177 <groupId>org.apache.maven.plugins</groupId>
178 <artifactId>maven-source-plugin</artifactId>
179 <executions>
180 <execution>
181 <id>attach-sources</id>
182 <phase>process-classes</phase>
183 <goals>
184 <goal>jar</goal>
185 </goals>
186 </execution>
187 </executions>
188 </plugin>
189 <plugin>
190 <groupId>org.apache.maven.plugins</groupId>
191 <artifactId>maven-javadoc-plugin</artifactId>
192 <executions>
193 <execution>
194 <id>package</id>
195 <phase>package</phase>
196 <goals>
197 <goal>jar</goal>
198 </goals>
199 </execution>
200 </executions>
201 <configuration>
202 <minmemory>128m</minmemory>
203 <maxmemory>512m</maxmemory>
204 <sourcepath>${project.build.directory}/sources</sourcepath>
205 </configuration>
206 </plugin>
207 </plugins>
208 </build>
209 </profile>
210 </profiles>
211
212</project>