<?xml version="1.0" encoding="UTF-8"?>
<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">
    <parent>
        <groupId>com.eclipsesource.jaxrs</groupId>
        <artifactId>osgi-jax-rs-connector-pom</artifactId>
        <version>5.3</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>features</artifactId>
    <packaging>pom</packaging>
    
    <name>OSGi JAX-RS Features</name>
    <organization>
      <name>EclipseSource</name>
      <url>http://eclipsesource.com/</url>
    </organization>
    <description>OSGi JAX-RS Karaf Feature</description>
    <url>https://github.com/hstaudacher/osgi-jax-rs-connector</url>
    <scm>
      <url>git://github.com/hstaudacher/osgi-jax-rs-connector.git</url>
      <connection>scm:git:git://github.com/hstaudacher/osgi-jax-rs-connector.git</connection>
    </scm>
    <issueManagement>
      <system>GitHub Issues</system>
      <url>https://github.com/hstaudacher/osgi-jax-rs-connector/issues</url>
    </issueManagement>
    <licenses>
      <license>
        <name>Eclipse Public License - v 1.0</name>
        <url>http://www.eclipse.org/org/documents/epl-v10.html</url>
      </license>
    </licenses>
    <developers>
      <developer>
        <name>Holger Staudacher</name>
        <organization>EclipseSource</organization>
      </developer>
    </developers>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
                <version>2.6</version>
                <executions>
                    <execution>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy-resources</goal>
                        </goals>
                        <configuration>
                            <outputDirectory>${project.build.directory}/resources</outputDirectory>
                            <resources>
                                <resource>
                                    <directory>${project.basedir}/src/main/resources</directory>
                                    <filtering>true</filtering>
                                </resource>
                            </resources>
                        </configuration>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <id>attach-features-xml</id>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>${project.build.directory}/resources/features.xml</file>
                                    <type>xml</type>
                                    <classifier>features</classifier>
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

</project>