public class Packager extends 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 |
|---|---|
Map<String,String> |
configureManifest(org.apache.maven.project.MavenProject pom,
org.apache.maven.archiver.MavenArchiveConfiguration archive,
File classesDirectory) |
void |
writeManifest(org.apache.maven.project.MavenProject pom,
File classesDirectory)
Creates META-INF/MANIFEST.MF with all the entries needed for HK2 runtime.
|
public void writeManifest(org.apache.maven.project.MavenProject pom,
File classesDirectory)
throws IOException
pom - The project from which we are creating manifest.IOExceptionpublic Map<String,String> configureManifest(org.apache.maven.project.MavenProject pom, org.apache.maven.archiver.MavenArchiveConfiguration archive, File classesDirectory) throws IOException
IOExceptionCopyright © 2014 Oracle Corporation. All rights reserved.