Class EarMavenArchiver
java.lang.Object
org.apache.maven.archiver.MavenArchiver
org.apache.maven.plugins.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
 
- 
Field Summary
FieldsFields inherited from class org.apache.maven.archiver.MavenArchiver
REPOSITORY_LAYOUT, REPOSITORY_LAYOUT_NONUNIQUE, SIMPLE_LAYOUT, SIMPLE_LAYOUT_NONUNIQUE - 
Constructor Summary
ConstructorsConstructorDescriptionEarMavenArchiver(List<EarModule> earModules) Creates an instance with the ear modules that will be packaged in the EAR archive. - 
Method Summary
Modifier and TypeMethodDescriptionprotected StringgenerateClassPathEntry(String classPathPrefix) Generates theClass-Pathentry of the manifest according to the list of ear modules.org.codehaus.plexus.archiver.jar.ManifestgetManifest(org.apache.maven.execution.MavenSession session, org.apache.maven.project.MavenProject project, org.apache.maven.archiver.MavenArchiveConfiguration config) org.codehaus.plexus.archiver.jar.ManifestgetManifest(org.apache.maven.project.MavenProject project, org.apache.maven.archiver.MavenArchiveConfiguration config) Deprecated.protected StringgetUserSuppliedClassPathEntry(org.apache.maven.archiver.MavenArchiveConfiguration config) Methods inherited from class org.apache.maven.archiver.MavenArchiver
configureReproducible, configureReproducibleBuild, createArchive, getArchiver, getManifest, getManifest, getManifest, parseBuildOutputTimestamp, parseOutputTimestamp, setArchiver, setBuildJdkSpecDefaultEntry, setCreatedBy, setOutputFile 
- 
Field Details
- 
CLASS_PATH_KEY
Class-Path.- See Also:
 
 
 - 
 - 
Constructor Details
- 
EarMavenArchiver
Creates an instance with the ear modules that will be packaged in the EAR archive.- Parameters:
 earModules- the intitialized list of ear modules
 
 - 
 - 
Method Details
- 
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 Deprecated.- Parameters:
 project-MavenProjectconfig-MavenArchiveConfiguration- Returns:
 - Manifest
 - Throws:
 org.codehaus.plexus.archiver.jar.ManifestException- in case of an errororg.apache.maven.artifact.DependencyResolutionRequiredException- in case of an resolution error.
 - 
getManifest
public org.codehaus.plexus.archiver.jar.Manifest getManifest(org.apache.maven.execution.MavenSession session, 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:
 getManifestin classorg.apache.maven.archiver.MavenArchiver- Throws:
 org.codehaus.plexus.archiver.jar.ManifestExceptionorg.apache.maven.artifact.DependencyResolutionRequiredException
 - 
generateClassPathEntry
Generates theClass-Pathentry of the manifest according to the list of ear modules.- Parameters:
 classPathPrefix- the classpath prefix to use- Returns:
 - the 
Class-Pathentry 
 - 
getUserSuppliedClassPathEntry
protected String getUserSuppliedClassPathEntry(org.apache.maven.archiver.MavenArchiveConfiguration config) - Parameters:
 config-MavenArchiveConfiguration- Returns:
 - The class path entry.
 
 
 -