<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>net.osgiliath.wrappers</groupId>
    <artifactId>net.osgiliath.wrappers</artifactId>
    <version>0.2.2</version>
  </parent>
  <artifactId>net.osgiliath.wrapper.camel-jms</artifactId>
  <name>Camel JMS wrapper</name>
  <description>Spring 4 wrapping for Camel-jms</description>
  	<build>
		<plugins>
			<!-- <plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
						<id>assembly:package</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
						<configuration>
							<appendAssemblyId>false</appendAssemblyId>
							<descriptors>
								<descriptor>src/main/resources/assembly.xml</descriptor>
							</descriptors>
							<archive>
								<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
							</archive>
						</configuration>
					</execution>
				</executions>
			</plugin>  -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-clean-plugin</artifactId>
				<configuration>
					<filesets>
						<fileset>
							<directory>src/main/resources</directory>
							<includes>
								<include>**/*.MF</include>
							</includes>
						</fileset>
					</filesets>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<executions>
					<execution>
						<id>copy</id>
						<phase>generate-sources</phase>
						<goals>
							<goal>copy</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>org.apache.camel</groupId>
									<artifactId>camel-jms</artifactId>
									<overWrite>true</overWrite>
									<outputDirectory>${project.build.directory}/classes</outputDirectory>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
					<execution>
						<id>get-manifest</id>
						<phase>process-sources</phase>
						<goals>
							<goal>unpack</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>org.apache.camel</groupId>
									<artifactId>camel-jms</artifactId>
									<includes>META-INF/MANIFEST.MF</includes>
									<overWrite>true</overWrite><!-- TODO set to true -->
									<outputDirectory>${project.build.resources[0].directory}/</outputDirectory>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<configuration>
					<instructions>
						<_include>-osgi.bnd</_include>
						<Bundle-Version>${org.apache.camel_camel-jms.version}</Bundle-Version>
						<Embed-Dependency>camel-jms,!*</Embed-Dependency>
					</instructions>
				</configuration>
			</plugin>
			<!-- <plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-resources</phase>
						<goals>
							<goal>java</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<mainClass>net.osgiliath.helper.manifest.transformer.ManifestBundleImportVersionUpdaterTransformer</mainClass>
					<arguments>
						<argument>overrides=org.springframework.beans=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.context=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.core.task=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.jms=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.jms.connection=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.jms.core=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.jms.listener=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.jms.support=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.jms.support.converter=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.jms.support.destination=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.scheduling.concurrent=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.transaction=[4,${org.apache.servicemix.bundles.spring4.version}];org.springframework.util=[4,${org.apache.servicemix.bundles.spring4.version}]</argument>
						<argument>basedir=${project.basedir}</argument>
						<argument>bundleClasspath=camel-jms-${org.apache.camel_camel-jms.version}</argument>
					</arguments>
					<executableDependency>
						<groupId>net.osgiliath.framework</groupId>
						<artifactId>net.osgiliath.helper.manifest.transformer</artifactId>
					</executableDependency>
				</configuration>
			</plugin> -->
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.apache.camel</groupId>
			<artifactId>camel-jms</artifactId>
		</dependency>
	<!-- 	<dependency>
			<groupId>net.osgiliath.framework</groupId>
			<artifactId>net.osgiliath.helper.manifest.transformer</artifactId>
			<version>${project.version}</version>
		</dependency>  -->
	</dependencies>
</project>