pom.xml 7.54 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3

4
	<modelVersion>4.0.0</modelVersion>
5

6 7
	<parent>
		<groupId>org.ow2.weblab.bundle</groupId>
Arnaud Saval's avatar
Arnaud Saval committed
8
		<artifactId>parent</artifactId>
Yann Mombrun's avatar
Yann Mombrun committed
9
		<version>2.1.2-SNAPSHOT</version>
10
		<relativePath>../pom.xml</relativePath>
11 12
	</parent>

13 14
	<groupId>org.ow2.weblab.osgi</groupId>
	<artifactId>karaf-weblab</artifactId>
15

16 17
	<packaging>karaf-assembly</packaging>
	<name>WebLab Custom Karaf Distribution.</name>
18

19 20 21 22 23 24 25 26 27 28 29 30 31
	<dependencyManagement>
		<!-- Import Karaf POM to use the correct version of the Karaf dependencies -->
		<dependencies>
			<dependency>
				<groupId>org.apache.karaf</groupId>
				<artifactId>karaf</artifactId>
				<version>${karaf.version}</version>
				<type>pom</type>
				<scope>import</scope>
			</dependency>
		</dependencies>
	</dependencyManagement>

32 33 34 35 36 37 38 39 40
	<dependencies>
		<dependency>
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>framework</artifactId>
			<type>kar</type>
		</dependency>
		<dependency>
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>standard</artifactId>
41 42 43 44 45 46 47 48 49 50 51 52 53 54
			<type>xml</type>
			<classifier>features</classifier>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>spring</artifactId>
			<classifier>features</classifier>
			<type>xml</type>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.karaf.features</groupId>
			<artifactId>enterprise</artifactId>
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
			<type>xml</type>
			<classifier>features</classifier>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.activemq</groupId>
			<artifactId>activemq-karaf</artifactId>
			<version>${activemq.version}</version>
			<type>xml</type>
			<classifier>features</classifier>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.camel.karaf</groupId>
			<artifactId>apache-camel</artifactId>
			<version>${camel.version}</version>
			<type>xml</type>
			<classifier>features</classifier>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>io.hawt</groupId>
			<artifactId>hawtio-karaf</artifactId>
			<version>${hawtio.version}</version>
			<type>xml</type>
			<classifier>features</classifier>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.ow2.weblab.engine</groupId>
			<artifactId>camel-weblab-karaf</artifactId>
			<version>${weblab.bundle.version}</version>
			<type>xml</type>
			<classifier>features</classifier>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.ow2.weblab.osgi</groupId>
			<artifactId>weblab-camel-chains-karaf</artifactId>
			<version>${weblab.bundle.version}</version>
			<type>xml</type>
			<classifier>features</classifier>
97
			<scope>runtime</scope>
98 99
		</dependency>
	</dependencies>
100

101 102 103 104 105 106 107 108 109 110 111 112 113
	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-resources-plugin</artifactId>
				<executions>
					<execution>
						<id>default-resources</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>copy-resources</goal>
						</goals>
						<configuration>
114
							<outputDirectory>target/assembly</outputDirectory>
115 116
							<resources>
								<resource>
117
									<directory>src/main/filtered-resources</directory>
118 119 120 121 122 123 124 125 126 127 128 129 130
									<filtering>true</filtering>
									<includes>
										<include>**/*</include>
									</includes>
								</resource>
							</resources>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.karaf.tooling</groupId>
				<artifactId>karaf-maven-plugin</artifactId>
131
				<version>${karaf.version}</version>
132 133
				<extensions>true</extensions>
				<configuration>
134 135 136
					<ignoreDependencyFlag>true</ignoreDependencyFlag>
					<addTransitiveFeatures>true</addTransitiveFeatures>
					<includeMvnBasedDescriptors>true</includeMvnBasedDescriptors>
137
					<archiveZip>false</archiveZip>
138

139 140
					<bootFeatures>
						<feature>standard</feature>
141
						<feature>config</feature>
142 143
						<feature>management</feature>
						<feature>obr</feature>
144
						<feature>ssh</feature>
145
						<feature>camel</feature>
146
						<feature>camel-core</feature>
147
						<feature>camel-cxf</feature>
148
						<feature>camel-flatpack</feature>
149
						<feature>camel-http</feature>
150
						<feature>camel-jaxb</feature>
151
						<feature>camel-jetty</feature>
152
						<feature>camel-jms</feature>
153
						<feature>camel-saxon</feature>
154
						<feature>camel-spring</feature>
155
						<feature>camel-weblab</feature>
156
						<feature>camel-xmlsecurity</feature>
157 158
						<feature>activemq-camel</feature>
						<feature>activemq-client</feature>
159
						<feature>cxf</feature>
160 161 162
						<feature>hawtio-offline</feature>
						<feature>weblab-camel-chains</feature>
					</bootFeatures>
163 164

					<installedFeatures>
Yann Mombrun's avatar
Yann Mombrun committed
165
						<feature>activemq-broker</feature>
166 167 168
						<feature>activemq-web-console</feature>
						<feature>aries-annotation</feature>
						<feature>blueprint-web</feature>
169
						<feature>camel-atom</feature>
170 171 172
						<feature>camel-base64</feature>
						<feature>camel-bean-validator</feature>
						<feature>camel-blueprint</feature>
173
						<feature>camel-cache</feature>
174
						<feature>camel-catalog</feature>
175
						<feature>camel-cmis</feature>
176 177 178
						<feature>camel-context</feature>
						<feature>camel-csv</feature>
						<feature>camel-eventadmin</feature>
179
						<feature>camel-facebook</feature>
180 181 182 183 184
						<feature>camel-ftp</feature>
						<feature>camel-gson</feature>
						<feature>camel-groovy</feature>
						<feature>camel-http4</feature>
						<feature>camel-jmx</feature>
185
						<feature>camel-linkedin</feature>
186 187 188
						<feature>camel-mongodb</feature>
						<feature>camel-paxlogging</feature>
						<feature>camel-quartz2</feature>
189
						<feature>camel-rss</feature>
190
						<feature>camel-script</feature>
191
						<feature>camel-spring-javaconfig</feature>
192
						<feature>camel-spring-ws</feature>
193 194
						<feature>camel-ssh</feature>
						<feature>camel-syslog</feature>
195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220
						<feature>camel-twitter</feature>
						<feature>cxf-bindings-soap</feature>
						<feature>cxf-core</feature>
						<feature>cxf-databinding-jaxb</feature>
						<feature>cxf-jaxrs</feature>
						<feature>cxf-jaxws</feature>
						<feature>cxf-http</feature>
						<feature>cxf-wsdl</feature>
						<feature>eventadmin</feature>
						<feature>framework-security</feature>
						<feature>http</feature>
						<feature>http-whiteboard</feature>
						<feature>jasypt-encryption</feature>
						<feature>jetty</feature>
						<feature>jms</feature>
						<feature>kar</feature>
						<feature>package</feature>
						<feature>region</feature>
						<feature>scheduler</feature>
						<feature>scr</feature>
						<feature>service-wrapper</feature>
						<feature>war</feature>
						<feature>webconsole</feature>
						<feature>wrapper</feature>
						<feature>xml-specs-api</feature>
					</installedFeatures>
221 222 223 224 225 226 227 228 229 230 231 232
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-install-plugin</artifactId>
				<executions>
					<execution>
						<goals>
							<goal>install-file</goal>
						</goals>
						<phase>install</phase>
						<configuration>
233
							<file>${project.build.directory}/${project.build.finalName}.tar.gz</file>
234
							<createChecksum>true</createChecksum>
235 236 237 238 239 240 241 242 243 244
							<generatePom>false</generatePom>
							<pomFile>pom.xml</pomFile>
							<packaging>tar.gz</packaging>
							<version>${project.version}</version>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
245 246

</project>