Maven Repository - POM file for Inversion of Control hk2 0.3.17 0.3.17

Summary

HK2 module of HK2 itself.

This is so that other modules can depend on HK2 as an HK2 module..

Declaration

Here is the list of declaration for hk2. If you use Maven you can use the following code to add the dependency for this POM file.

<dependency>
   <groupId>com.sun.enterprise</groupId>
   <artifactId>hk2</artifactId>
   <version>0.3.17</version>
</dependency>

If you think this Maven repository POM file listing for hk2 is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Plugin

The following plugins are used in the hk2-0.3.17.jar

  1. hk2-maven-plugin
  2. maven-jar-plugin




POM File Source

Here is the content of the POM file.

<?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>0.3.17</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>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <configuration>
                    <archive>
                        <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
                    </archive>
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.sun.enterprise</groupId>
                <artifactId>hk2-maven-plugin</artifactId>
                <version>RELEASE</version>
                <extensions>true</extensions>
                <executions>
                    <execution><!-- this computes "project.osgi.version" property, which we use below -->
                        <goals>
                            <goal>compute-osgi-version</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <generateOSGiHeaders>true</generateOSGiHeaders>
                    <archive>
                        <manifest>
                            <mainClass>com.sun.enterprise.module.bootstrap.Main</mainClass>
                        </manifest>
                        <manifestEntries>
                            <Require-Bundle>
                                ${project.groupId}.auto-depends;visibility:=reexport;resolution:=mandatory,
                                ${project.groupId}.config;visibility:=reexport;resolution:=mandatory,
                                ${project.groupId}.hk2-core;visibility:=reexport;resolution:=mandatory
                            </Require-Bundle>
                        </manifestEntries>
                    </archive>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <!-- This dependency is really not needed, it should be removed - Sahoo-->
    <dependencies>
        <dependency>
            <groupId>com.sun.enterprise</groupId>
            <artifactId>hk2-core</artifactId>
            <version>${project.version}</version>
        </dependency>
    </dependencies>

</project>