blob: c3c7d06e0b2cfead9aa18cb2ee9d39b18d6d66b3 [file] [log] [blame]
Guillaume Nodet6896d702009-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 Nodet05fac962009-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>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +000024 <groupId>org.apache.felix.karaf.admin</groupId>
25 <artifactId>admin</artifactId>
Guillaume Nodetdddb4e52010-06-15 09:09:47 +000026 <version>1.6.2</version>
Guillaume Nodet05fac962009-04-27 10:01:58 +000027 </parent>
28
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +000029 <groupId>org.apache.felix.karaf.admin</groupId>
30 <artifactId>org.apache.felix.karaf.admin.core</artifactId>
Guillaume Nodet05fac962009-04-27 10:01:58 +000031 <packaging>bundle</packaging>
Guillaume Nodetdddb4e52010-06-15 09:09:47 +000032 <version>1.6.2</version>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +000033 <name>Apache Felix Karaf :: Admin Core</name>
Guillaume Nodet05fac962009-04-27 10:01:58 +000034
Guillaume Nodete73545e2009-09-18 20:25:06 +000035 <properties>
36 <appendedResourcesDirectory>${basedir}/../../etc/appended-resources</appendedResourcesDirectory>
37 </properties>
38
Guillaume Nodet05fac962009-04-27 10:01:58 +000039 <dependencies>
40 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +000041 <groupId>org.apache.felix</groupId>
42 <artifactId>org.osgi.core</artifactId>
43 <scope>provided</scope>
44 </dependency>
45
46 <dependency>
47 <groupId>org.apache.felix</groupId>
48 <artifactId>org.osgi.compendium</artifactId>
49 <scope>provided</scope>
50 </dependency>
51
52 <dependency>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +000053 <groupId>org.apache.felix</groupId>
54 <artifactId>org.apache.felix.bundlerepository</artifactId>
Guillaume Nodete1a12572009-09-08 18:37:13 +000055 </dependency>
56
57 <dependency>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +000058 <groupId>org.apache.felix.karaf.shell</groupId>
59 <artifactId>org.apache.felix.karaf.shell.console</artifactId>
60 </dependency>
61
62 <dependency>
63 <groupId>org.apache.felix.karaf.shell</groupId>
64 <artifactId>org.apache.felix.karaf.shell.obr</artifactId>
65 </dependency>
66
67 <dependency>
68 <groupId>org.springframework.osgi</groupId>
69 <artifactId>spring-osgi-core</artifactId>
70 <scope>test</scope>
71 </dependency>
72 <dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +000073 <groupId>org.apache.servicemix.bundles</groupId>
74 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
75 <scope>test</scope>
76 </dependency>
Guillaume Nodete1a12572009-09-08 18:37:13 +000077 <dependency>
78 <groupId>org.easymock</groupId>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +000079 <artifactId>easymock</artifactId>
80 <scope>test</scope>
81 </dependency>
82 <dependency>
83 <groupId>org.slf4j</groupId>
84 <artifactId>slf4j-jdk14</artifactId>
Guillaume Nodete1a12572009-09-08 18:37:13 +000085 <scope>test</scope>
86 </dependency>
Guillaume Nodet05fac962009-04-27 10:01:58 +000087 </dependencies>
88
89 <build>
90 <resources>
91 <resource>
Chris Custine80977a92010-05-16 08:24:14 +000092 <directory>${project.basedir}/src/main/resources</directory>
Guillaume Nodet05fac962009-04-27 10:01:58 +000093 <includes>
94 <include>**/*</include>
95 </includes>
96 </resource>
Guillaume Nodet05fac962009-04-27 10:01:58 +000097 </resources>
98 <plugins>
99 <plugin>
100 <groupId>org.apache.maven.plugins</groupId>
101 <artifactId>maven-resources-plugin</artifactId>
102 <executions>
103 <execution>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000104 <id>copy-config-properties</id>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000105 <!-- here the phase you need -->
106 <phase>compile</phase>
107 <goals>
108 <goal>copy-resources</goal>
109 </goals>
110 <configuration>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +0000111 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/admin/etc</outputDirectory>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000112 <resources>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000113 <resource>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000114 <directory>../../assembly/src/main/distribution/text/etc/</directory>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000115 <includes>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000116 <include>*.properties</include>
117 <include>*.cfg</include>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000118 </includes>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000119 <excludes>
120 <exclude>org.apache.felix.karaf.shell.cfg</exclude>
121 <exclude>org.ops4j.pax.url.mvn.cfg</exclude>
122 <exclude>system.properties</exclude>
123 </excludes>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000124 </resource>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000125 </resources>
126 </configuration>
127 </execution>
128 <execution>
129 <id>copy-filtered</id>
130 <!-- here the phase you need -->
131 <phase>compile</phase>
132 <goals>
133 <goal>copy-resources</goal>
134 </goals>
135 <configuration>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +0000136 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/admin/etc</outputDirectory>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000137 <resources>
138 <resource>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000139 <directory>../../assembly/src/main/filtered-resources/etc</directory>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000140 <filtering>true</filtering>
141 <includes>
Guillaume Nodet129433d2009-07-09 08:29:14 +0000142 <include>*.properties</include>
143 <include>*.cfg</include>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000144 </includes>
145 </resource>
146 </resources>
147 </configuration>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000148 </execution>
149 </executions>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000150 </plugin>
151 <plugin>
152 <groupId>org.apache.felix</groupId>
153 <artifactId>maven-bundle-plugin</artifactId>
154 <configuration>
155 <instructions>
Chris Custine80977a92010-05-16 08:24:14 +0000156 <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +0000157 <Export-Package>
Chris Custine80977a92010-05-16 08:24:14 +0000158 org.apache.felix.karaf.admin;version=${project.version},
159 org.apache.felix.karaf.jpm;version=${project.version}
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +0000160 </Export-Package>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000161 <Import-Package>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +0000162 !org.apache.felix.karaf.admin,
163 !org.apache.felix.karaf.jpm,
164 javax.management,
165 javax.management.loading,
Guillaume Nodet129433d2009-07-09 08:29:14 +0000166 org.osgi.service.command,
167 org.apache.felix.gogo.commands,
Guillaume Nodet23a0f3d2009-09-18 20:14:54 +0000168 org.apache.felix.karaf.shell.console,
Guillaume Nodet05fac962009-04-27 10:01:58 +0000169 *
170 </Import-Package>
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +0000171 <Private-Package>
Guillaume Nodet1ebf8a52009-10-22 18:37:15 +0000172 org.apache.felix.karaf.admin.bin,
173 org.apache.felix.karaf.admin.etc,
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +0000174 org.apache.felix.karaf.admin.internal,
Guillaume Nodet1ebf8a52009-10-22 18:37:15 +0000175 org.apache.felix.karaf.jpm.impl,
Guillaume Nodet8c0c8eb2009-10-22 18:01:48 +0000176 </Private-Package>
Guillaume Nodet4e32cd62009-05-04 16:30:02 +0000177 <_versionpolicy>${bnd.version.policy}</_versionpolicy>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000178 </instructions>
179 </configuration>
180 </plugin>
Gert Vanthienenabed2af2009-06-16 11:58:10 +0000181 <plugin>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-surefire-plugin</artifactId>
184 <configuration>
185 <excludes>
186 <!-- this is not a unit test but an application used for testing -->
187 <exclude>**/MainTest.java</exclude>
188 </excludes>
189 </configuration>
190 </plugin>
Guillaume Nodet05fac962009-04-27 10:01:58 +0000191 </plugins>
192 </build>
193</project>