org.apache.maven.plugin.ear.util
Class EarMavenArchiver
java.lang.Object
org.apache.maven.archiver.MavenArchiver
org.apache.maven.plugin.ear.util.EarMavenArchiver
public class EarMavenArchiver
- extends org.apache.maven.archiver.MavenArchiver
A custom MavenArchiver
implementation that takes care
of setting the right classpath value according to the actual
path of bundled files.
- Author:
- Stephane Nicoll
Fields inherited from class org.apache.maven.archiver.MavenArchiver |
REPOSITORY_LAYOUT, REPOSITORY_LAYOUT_NONUNIQUE, SIMPLE_LAYOUT, SIMPLE_LAYOUT_NONUNIQUE |
Constructor Summary |
EarMavenArchiver(List earModules)
Creates an instance with the ear modules that will be packaged
in the EAR archive. |
Methods inherited from class org.apache.maven.archiver.MavenArchiver |
createArchive, getArchiver, getManifest, getManifest, setArchiver, setOutputFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLASS_PATH_KEY
public static final String CLASS_PATH_KEY
- See Also:
- Constant Field Values
EarMavenArchiver
public EarMavenArchiver(List earModules)
- Creates an instance with the ear modules that will be packaged
in the EAR archive.
- Parameters:
earModules
- the intitialized list of ear modules
getManifest
public org.codehaus.plexus.archiver.jar.Manifest getManifest(org.apache.maven.project.MavenProject project,
org.apache.maven.archiver.MavenArchiveConfiguration config)
throws org.codehaus.plexus.archiver.jar.ManifestException,
org.apache.maven.artifact.DependencyResolutionRequiredException
- Overrides:
getManifest
in class org.apache.maven.archiver.MavenArchiver
- Throws:
org.codehaus.plexus.archiver.jar.ManifestException
org.apache.maven.artifact.DependencyResolutionRequiredException
generateClassPathEntry
protected String generateClassPathEntry(String classPathPrefix)
- Generates the Class-Path entry of the manifest according to
the list of ear modules.
- Parameters:
classPathPrefix
- the classpath prefix to use
- Returns:
- the Class-Path entry
getUserSuppliedClassPathEntry
protected String getUserSuppliedClassPathEntry(org.apache.maven.archiver.MavenArchiveConfiguration config)
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.