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 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
Constructor Summary |
EarMavenArchiver(List<EarModule> earModules)
Creates an instance with the ear modules that will be packaged
in the EAR archive. |
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<EarModule> 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 Manifest getManifest(MavenProject project,
MavenArchiveConfiguration config)
throws ManifestException,
DependencyResolutionRequiredException
- Overrides:
getManifest
in class MavenArchiver
- Throws:
ManifestException
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(MavenArchiveConfiguration config)
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.