blob: ae4bf096ff0397329aac82ecab4df392cece2f1e [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
36 <dependencies>
37 <dependency>
Guillaume Nodet350b1502009-05-05 15:46:15 +000038 <groupId>org.eclipse</groupId>
39 <artifactId>osgi</artifactId>
40 <scope>provided</scope>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000041 </dependency>
42 <dependency>
43 <groupId>org.apache.felix</groupId>
Guillaume Nodet350b1502009-05-05 15:46:15 +000044 <artifactId>org.apache.felix.framework</artifactId>
45 <scope>provided</scope>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000046 </dependency>
47 <dependency>
48 <groupId>org.apache.servicemix.bundles</groupId>
49 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
50 <scope>test</scope>
51 </dependency>
52 </dependencies>
53 <build>
54 <plugins>
55 <plugin>
56 <groupId>org.apache.felix</groupId>
57 <artifactId>maven-bundle-plugin</artifactId>
58 <configuration>
59 <instructions>
60 <_donotcopy>(CVS|.svn|config.properties)</_donotcopy>
Gert Vanthienen607b8522009-05-02 19:57:13 +000061 <Main-Class>org.apache.felix.karaf.main.Main</Main-Class>
Guillaume Nodet874ecc82009-05-04 07:56:47 +000062 <Bundle-Name>Apache Felix Karaf</Bundle-Name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000063 <Bundle-Description>OSGi R4 framework.</Bundle-Description>
64 <Bundle-SymbolicName>${pom.artifactId}</Bundle-SymbolicName>
Gert Vanthienen607b8522009-05-02 19:57:13 +000065 <Export-Package>org.apache.felix.karaf.main.spi.*;version=${pom.version}</Export-Package>
Guillaume Nodet350b1502009-05-05 15:46:15 +000066 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000067 <Private-Package>
Guillaume Nodet350b1502009-05-05 15:46:15 +000068 org.apache.felix.*;-split-package:=merge-first,
69 org.eclipse.*;-split-package:=merge-first,
70 org.osgi.*;-split-package:=merge-first,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000071 META-INF;-split-package:=merge-first
72 </Private-Package>
73 <Import-Package>!*</Import-Package>
Guillaume Nodet350b1502009-05-05 15:46:15 +000074 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000075 </instructions>
76 <unpackBundle>true</unpackBundle>
77 </configuration>
78 </plugin>
Guillaume Nodet350b1502009-05-05 15:46:15 +000079 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000080 <plugin>
81 <groupId>org.apache.maven.plugins</groupId>
82 <artifactId>maven-shade-plugin</artifactId>
83 <executions>
84 <execution>
85 <phase>package</phase>
86 <goals>
87 <goal>shade</goal>
88 </goals>
89 <configuration>
90 <artifactSet>
91 <includes>
Guillaume Nodet350b1502009-05-05 15:46:15 +000092 <include>org.eclipse:osgi</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000093 <include>org.apache.felix:org.apache.felix.framework</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000094 <include>${project.groupId}:${project.artifactId}</include>
95 </includes>
96 </artifactSet>
97 <filters>
98 <filter>
Guillaume Nodet350b1502009-05-05 15:46:15 +000099 <artifact>org.eclipse:osgi</artifact>
100 <includes>
101 <include>org/osgi/**</include>
102 <include>org/eclipse/**</include>
103 <include>hookconfigurators.properties</include>
104 </includes>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000105 </filter>
106 <filter>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000107 <artifact>org.apache.felix:org.apache.felix.framework</artifact>
108 <includes>
109 <include>org/apache/felix/**</include>
110 </includes>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000111 </filter>
112 </filters>
113 <createSourcesJar>${createSourcesJar}</createSourcesJar>
114 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
115 <createDependencyReducedPom>true</createDependencyReducedPom>
116 </configuration>
117 </execution>
118 </executions>
119 </plugin>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000120 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000121 </plugins>
122 <resources>
123 <resource>
124 <directory>src/main/resources</directory>
125 <filtering>true</filtering>
126 </resource>
127 </resources>
128 </build>
129
130 <profiles>
131 <profile>
132 <id>deploy</id>
133 <properties>
134 <createSourcesJar>true</createSourcesJar>
135 </properties>
136 <build>
137 <plugins>
138 <plugin>
139 <groupId>org.apache.maven.plugins</groupId>
140 <artifactId>maven-dependency-plugin</artifactId>
141 <executions>
142 <execution>
143 <id>unpack-sources</id>
144 <phase>generate-sources</phase>
145 <goals>
146 <goal>unpack</goal>
147 </goals>
148 <configuration>
149 <artifactItems>
150 <artifactItem>
Guillaume Nodet350b1502009-05-05 15:46:15 +0000151 <groupId>org.eclipse</groupId>
152 <artifactId>osgi</artifactId>
153 <classifier>sources</classifier>
154 </artifactItem>
155 <artifactItem>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000156 <groupId>org.apache.felix</groupId>
157 <artifactId>org.osgi.core</artifactId>
158 <classifier>sources</classifier>
159 </artifactItem>
160 <artifactItem>
161 <groupId>org.apache.felix</groupId>
162 <artifactId>org.apache.felix.framework</artifactId>
163 <classifier>sources</classifier>
164 </artifactItem>
165 </artifactItems>
166 <outputDirectory>${project.build.directory}/sources</outputDirectory>
167 </configuration>
168 </execution>
169 </executions>
170 </plugin>
171 <plugin>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-source-plugin</artifactId>
174 <executions>
175 <execution>
176 <id>attach-sources</id>
177 <phase>process-classes</phase>
178 <goals>
179 <goal>jar</goal>
180 </goals>
181 </execution>
182 </executions>
183 </plugin>
184 <plugin>
185 <groupId>org.apache.maven.plugins</groupId>
186 <artifactId>maven-javadoc-plugin</artifactId>
187 <executions>
188 <execution>
189 <id>package</id>
190 <phase>package</phase>
191 <goals>
192 <goal>jar</goal>
193 </goals>
194 </execution>
195 </executions>
196 <configuration>
197 <minmemory>128m</minmemory>
198 <maxmemory>512m</maxmemory>
199 <sourcepath>${project.build.directory}/sources</sourcepath>
200 </configuration>
201 </plugin>
202 </plugins>
203 </build>
204 </profile>
205 </profiles>
206
207</project>