blob: c399f6ae8d2f446f342913c6480bb8ab77ffbf9d [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.gshell</groupId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000026 <artifactId>gshell</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.gshell</groupId>
31 <artifactId>org.apache.felix.karaf.gshell.admin</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 :: GShell Admin</name>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000035
36 <description>
37 Provides administration commands
38 </description>
39
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000040 <dependencies>
41 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +000042 <groupId>org.apache.felix.karaf.gshell</groupId>
Guillaume Nodet077bac52009-07-09 08:29:14 +000043 <artifactId>org.apache.felix.karaf.gshell.console</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000044 </dependency>
45
46 <dependency>
47 <groupId>org.apache.felix</groupId>
48 <artifactId>org.osgi.core</artifactId>
49 <scope>provided</scope>
50 </dependency>
51
52 <dependency>
53 <groupId>org.apache.felix</groupId>
54 <artifactId>org.osgi.compendium</artifactId>
55 <scope>provided</scope>
56 </dependency>
57
58 <dependency>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000059 <groupId>org.apache.servicemix.bundles</groupId>
60 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
61 <scope>test</scope>
62 </dependency>
63 </dependencies>
64
65 <build>
66 <resources>
67 <resource>
68 <directory>${pom.basedir}/src/main/resources</directory>
69 <includes>
70 <include>**/*</include>
71 </includes>
72 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +000073 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000074 <resource>
75 <directory>${pom.basedir}/src/main/filtered-resources</directory>
76 <filtering>true</filtering>
77 <includes>
78 <include>**/*</include>
79 </includes>
80 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +000081 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000082 </resources>
83 <plugins>
84 <plugin>
85 <groupId>org.apache.maven.plugins</groupId>
86 <artifactId>maven-resources-plugin</artifactId>
87 <executions>
88 <execution>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +000089 <id>copy-config-properties</id>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000090 <!-- here the phase you need -->
91 <phase>compile</phase>
92 <goals>
93 <goal>copy-resources</goal>
94 </goals>
95 <configuration>
Gert Vanthienen607b8522009-05-02 19:57:13 +000096 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/gshell/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +000097 <resources>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000098 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +000099 <directory>../../assembly/src/main/distribution/text/etc/</directory>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000100 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000101 <include>*.properties</include>
102 <include>*.cfg</include>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000103 </includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000104 <excludes>
105 <exclude>org.apache.felix.karaf.shell.cfg</exclude>
106 <exclude>org.ops4j.pax.url.mvn.cfg</exclude>
107 <exclude>system.properties</exclude>
108 </excludes>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000109 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000110 </resources>
111 </configuration>
112 </execution>
113 <execution>
114 <id>copy-filtered</id>
115 <!-- here the phase you need -->
116 <phase>compile</phase>
117 <goals>
118 <goal>copy-resources</goal>
119 </goals>
120 <configuration>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000121 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/gshell/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000122 <resources>
123 <resource>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000124 <directory>../../assembly/src/main/filtered-resources/etc</directory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000125 <filtering>true</filtering>
126 <includes>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000127 <include>*.properties</include>
128 <include>*.cfg</include>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000129 </includes>
130 </resource>
131 </resources>
132 </configuration>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000133 </execution>
134 </executions>
135 </plugin>
136 <plugin>
137 <groupId>org.codehaus.mojo</groupId>
138 <artifactId>exec-maven-plugin</artifactId>
139 <configuration>
140 <mainClass>Main</mainClass>
141 </configuration>
142 </plugin>
143 <plugin>
144 <groupId>org.apache.felix</groupId>
145 <artifactId>maven-bundle-plugin</artifactId>
146 <configuration>
147 <instructions>
148 <Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000149 <Export-Package>${pom.artifactId}*;version=${project.version}</Export-Package>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000150 <Import-Package>
Guillaume Nodet077bac52009-07-09 08:29:14 +0000151 org.osgi.service.command,
152 org.apache.felix.gogo.commands,
153 org.apache.felix.karaf.gshell.console,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000154 *
155 </Import-Package>
Guillaume Nodet4713c732009-05-04 07:02:13 +0000156 <Private-Package>org.apache.felix.karaf.jpm.*</Private-Package>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000157 <_versionpolicy>${bnd.version.policy}</_versionpolicy>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000158 </instructions>
159 </configuration>
160 </plugin>
Gert Vanthienenc3f669d2009-06-16 11:58:10 +0000161 <plugin>
162 <groupId>org.apache.maven.plugins</groupId>
163 <artifactId>maven-surefire-plugin</artifactId>
164 <configuration>
165 <excludes>
166 <!-- this is not a unit test but an application used for testing -->
167 <exclude>**/MainTest.java</exclude>
168 </excludes>
169 </configuration>
170 </plugin>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000171 </plugins>
172 </build>
173</project>