public class Packager
extends java.lang.Object
MavenArchiveConfiguration
.
This class is moved outside PackageMojo
and doesn't rely
on Mojo resource injection to allow other plugins to reuse
this capability without hitting http://jira.codehaus.org/browse/MNG-2789.
Constructor and Description |
---|
Packager() |
Modifier and Type | Method and Description |
---|---|
private void |
configureImportPolicy(java.io.File classesDirectory,
java.util.Map<java.lang.String,java.lang.String> entries,
java.lang.Class<?> clazz,
java.lang.String entryName) |
java.util.Map<java.lang.String,java.lang.String> |
configureManifest(org.apache.maven.project.MavenProject pom,
org.apache.maven.archiver.MavenArchiveConfiguration archive,
java.io.File classesDirectory) |
private static java.lang.String |
stripVersion(org.apache.maven.artifact.Artifact a) |
void |
writeManifest(org.apache.maven.project.MavenProject pom,
java.io.File classesDirectory)
Creates META-INF/MANIFEST.MF with all the entries needed for HK2 runtime.
|
public void writeManifest(org.apache.maven.project.MavenProject pom, java.io.File classesDirectory) throws java.io.IOException
pom
- The project from which we are creating manifest.java.io.IOException
public java.util.Map<java.lang.String,java.lang.String> configureManifest(org.apache.maven.project.MavenProject pom, org.apache.maven.archiver.MavenArchiveConfiguration archive, java.io.File classesDirectory) throws java.io.IOException
java.io.IOException
private void configureImportPolicy(java.io.File classesDirectory, java.util.Map<java.lang.String,java.lang.String> entries, java.lang.Class<?> clazz, java.lang.String entryName) throws java.io.IOException
java.io.IOException
private static java.lang.String stripVersion(org.apache.maven.artifact.Artifact a)