<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.1</version>
  </parent>
  <artifactId>net.osgiliath.wrapper.deltaspike-proxy-module-impl-asm5</artifactId>
  <name>DS proxy module wrappers</name>
  <description>Wrapper for deltaspike proxy module</description>
  	<build>
		<plugins>
		<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>compile</phase>
						<goals>
							<goal>copy</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>org.apache.deltaspike.modules</groupId>
									<artifactId>deltaspike-proxy-module-impl-asm5</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.deltaspike.modules</groupId>
									<artifactId>deltaspike-proxy-module-impl-asm5</artifactId>
									<includes>META-INF/MANIFEST.MF</includes>
									<overWrite>true</overWrite>
									<outputDirectory>${project.build.resources[0].directory}/</outputDirectory>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
			</plugin>
			<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<configuration>
					<instructions>
						<_include>-osgi.bnd</_include>
						<Bundle-Version>${org.apache.deltaspike.modules_deltaspike-proxy-module-impl-asm5.version}</Bundle-Version>
						<Embed-Dependency>deltaspike-proxy-module-impl-asm5,!*</Embed-Dependency>
					</instructions>
				</configuration>
			</plugin>
		</plugins>
	</build>
	<dependencies>
		<dependency>
			<groupId>org.apache.deltaspike.modules</groupId>
			<artifactId>deltaspike-proxy-module-impl-asm5</artifactId>
		</dependency>
	</dependencies>
</project>