blob: 644ea1e54acab71864c0954207e4339b11dc9cc7 [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>
27 <version>1.2.0-SNAPSHOT</version>
28 </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>
33 <version>1.2.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
40 <properties>
41 <gshell.osgi.import>
Gert Vanthienen607b8522009-05-02 19:57:13 +000042 org.apache.felix.karaf.main.spi.*;resolution:=optional,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000043 org.apache.geronimo.gshell*,
44 </gshell.osgi.import>
45 <gshell.osgi.export>
Guillaume Nodet874ecc82009-05-04 07:56:47 +000046 org.apache.felix.karaf.jpm
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000047 </gshell.osgi.export>
48 <gshell.osgi.private>
Gert Vanthienen607b8522009-05-02 19:57:13 +000049 org.apache.felix.karaf.gshell.admin.*,
Guillaume Nodet874ecc82009-05-04 07:56:47 +000050 org.apache.feix.karaf.jpm.impl
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000051 </gshell.osgi.private>
52 </properties>
53
54 <dependencies>
55 <dependency>
Gert Vanthienen607b8522009-05-02 19:57:13 +000056 <groupId>org.apache.felix.karaf.gshell</groupId>
57 <artifactId>org.apache.felix.karaf.gshell.core</artifactId>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000058 </dependency>
59
60 <dependency>
61 <groupId>org.apache.felix</groupId>
62 <artifactId>org.osgi.core</artifactId>
63 <scope>provided</scope>
64 </dependency>
65
66 <dependency>
67 <groupId>org.apache.felix</groupId>
68 <artifactId>org.osgi.compendium</artifactId>
69 <scope>provided</scope>
70 </dependency>
71
72 <dependency>
73 <groupId>org.springframework.osgi</groupId>
74 <artifactId>spring-osgi-core</artifactId>
75 </dependency>
76
77 <dependency>
78 <groupId>org.apache.servicemix.bundles</groupId>
79 <artifactId>org.apache.servicemix.bundles.junit</artifactId>
80 <scope>test</scope>
81 </dependency>
82 </dependencies>
83
84 <build>
85 <resources>
86 <resource>
87 <directory>${pom.basedir}/src/main/resources</directory>
88 <includes>
89 <include>**/*</include>
90 </includes>
91 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +000092 <!--
Guillaume Nodet91fab3b2009-04-27 10:01:58 +000093 <resource>
94 <directory>${pom.basedir}/src/main/filtered-resources</directory>
95 <filtering>true</filtering>
96 <includes>
97 <include>**/*</include>
98 </includes>
99 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000100 -->
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000101 </resources>
102 <plugins>
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-resources-plugin</artifactId>
106 <executions>
107 <execution>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000108 <id>copy-config-properties</id>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000109 <!-- here the phase you need -->
110 <phase>compile</phase>
111 <goals>
112 <goal>copy-resources</goal>
113 </goals>
114 <configuration>
Gert Vanthienen607b8522009-05-02 19:57:13 +0000115 <outputDirectory>${basedir}/target/classes/org/apache/felix/karaf/gshell/admin/etc</outputDirectory>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000116 <resources>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000117 <resource>
118 <directory>../../${config.location}</directory>
119 <includes>
120 <include>config.properties</include>
121 </includes>
122 </resource>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000123 </resources>
124 </configuration>
125 </execution>
126 <execution>
127 <id>copy-filtered</id>
128 <!-- here the phase you need -->
129 <phase>compile</phase>
130 <goals>
131 <goal>copy-resources</goal>
132 </goals>
133 <configuration>
134 <outputDirectory>${basedir}/target/classes</outputDirectory>
135 <resources>
136 <resource>
137 <directory>src/main/filtered-resources</directory>
138 <filtering>true</filtering>
139 <includes>
140 <include>**/*.cfg</include>
141 <include>**/*.properties</include>
142 </includes>
143 </resource>
144 </resources>
145 </configuration>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000146 </execution>
147 </executions>
148 </plugin>
149 <plugin>
150 <groupId>org.codehaus.mojo</groupId>
151 <artifactId>exec-maven-plugin</artifactId>
152 <configuration>
153 <mainClass>Main</mainClass>
154 </configuration>
155 </plugin>
156 <plugin>
157 <groupId>org.apache.felix</groupId>
158 <artifactId>maven-bundle-plugin</artifactId>
159 <configuration>
160 <instructions>
161 <Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000162 <Export-Package>${pom.artifactId}*;version=${project.version}</Export-Package>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000163 <Import-Package>
Guillaume Nodetcd8b9172009-05-07 13:19:47 +0000164 org.apache.geronimo.gshell.command,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000165 org.apache.geronimo.gshell.wisdom.command,
166 org.apache.geronimo.gshell.wisdom.registry,
Gert Vanthienen607b8522009-05-02 19:57:13 +0000167 org.apache.felix.karaf.gshell.core,
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000168 *
169 </Import-Package>
Guillaume Nodet4713c732009-05-04 07:02:13 +0000170 <Private-Package>org.apache.felix.karaf.jpm.*</Private-Package>
Guillaume Nodet3e9a4282009-05-04 16:30:02 +0000171 <Spring-Context>*;publish-context:=false;create-asynchronously:=true</Spring-Context>
172 <_versionpolicy>${bnd.version.policy}</_versionpolicy>
Guillaume Nodet91fab3b2009-04-27 10:01:58 +0000173 </instructions>
174 </configuration>
175 </plugin>
176 </plugins>
177 </build>
178</project>