HK2 module of HK2 itself.
This is so that other modules can depend on HK2 as an HK2 module..
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.2</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.
The following plugins are used in the hk2-0.3.2.jar
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.2</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>${project.version}</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> <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> <Export-Package> <!-- This is needed for Knopflerfish. Both Felix and Equinox don't need this, as they automatically add the reexported packages to export list. --> org.jvnet.hk2.component;version=${project.osgi.version}, org.jvnet.hk2.annotations;version=${project.osgi.version}, com.sun.hk2.component;version=${project.osgi.version}, org.jvnet.hk2.config;version=${project.osgi.version}, com.sun.enterprise.module;version=${project.osgi.version}, com.sun.enterprise.module.bootstrap;version=${project.osgi.version}, com.sun.enterprise.module.common_impl;version=${project.osgi.version}, com.sun.enterprise.module.impl;version=${project.osgi.version} </Export-Package> </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>