<?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/maven-v4_0_0.xsd">
    <parent>
        <groupId>com.sun.enterprise</groupId>
        <artifactId>hk2-parent</artifactId>
        <version>1.0.0</version>
        <relativePath>../pom.xml</relativePath>
    </parent>
    <modelVersion>4.0.0</modelVersion>
    <artifactId>hk2</artifactId>
    <packaging>hk2-jar</packaging>
    <name>HK2 module of HK2 itself</name>
    <description>This is so that other modules can depend on HK2 as an HK2 module.</description>

    <build>
        <plugins>
            <plugin>
                <groupId>com.sun.enterprise</groupId>
                <artifactId>hk2-maven-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <generateOSGiHeaders>true</generateOSGiHeaders>
                    <visibility>reexport</visibility>
                    <archive>
                        <manifest>
                            <mainClass>com.sun.enterprise.module.bootstrap.Main</mainClass>
                        </manifest>
                    </archive>
                </configuration>
            </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.1</version>
            <configuration>
                <includePom>true</includePom>
                <includes>
                    <include>pom.xml</include>
                </includes>
            </configuration>
          </plugin>            
        </plugins>
    </build>
    <dependencies>
        <!-- These dependencies are mentioned so that proper 
             Require-Bundle header can be generated by hk2-maven-plugin
        -->
        <dependency>
            <groupId>com.sun.enterprise</groupId>
            <artifactId>hk2-core</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.enterprise</groupId>
            <artifactId>config</artifactId>
            <version>${project.version}</version>
        </dependency>
        <dependency>
            <groupId>com.sun.enterprise</groupId>
            <artifactId>auto-depends</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

</project>
