public class EarMavenArchiver extends MavenArchiver
MavenArchiver implementation that takes care of setting the right classpath value according to the
actual path of bundled files.| Modifier and Type | Field and Description |
|---|---|
static String |
CLASS_PATH_KEY
Class-Path. |
REPOSITORY_LAYOUT, REPOSITORY_LAYOUT_NONUNIQUE, SIMPLE_LAYOUT, SIMPLE_LAYOUT_NONUNIQUE| Constructor and Description |
|---|
EarMavenArchiver(List<EarModule> earModules)
Creates an instance with the ear modules that will be packaged in the EAR archive.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateClassPathEntry(String classPathPrefix)
Generates the Class-Path entry of the manifest according to the list of ear modules.
|
Manifest |
getManifest(MavenProject project,
MavenArchiveConfiguration config)
Deprecated.
|
Manifest |
getManifest(MavenSession session,
MavenProject project,
MavenArchiveConfiguration config) |
protected String |
getUserSuppliedClassPathEntry(MavenArchiveConfiguration config) |
configureReproducible, createArchive, getArchiver, getManifest, getManifest, getManifest, parseOutputTimestamp, setArchiver, setBuildJdkSpecDefaultEntry, setCreatedBy, setOutputFilepublic static final String CLASS_PATH_KEY
Class-Path.public Manifest getManifest(MavenProject project, MavenArchiveConfiguration config) throws ManifestException, DependencyResolutionRequiredException
project - MavenProjectconfig - MavenArchiveConfigurationManifestException - in case of an errorDependencyResolutionRequiredException - in case of an resolution error.public Manifest getManifest(MavenSession session, MavenProject project, MavenArchiveConfiguration config) throws ManifestException, DependencyResolutionRequiredException
getManifest in class MavenArchiverManifestExceptionDependencyResolutionRequiredExceptionprotected String generateClassPathEntry(String classPathPrefix)
classPathPrefix - the classpath prefix to useprotected String getUserSuppliedClassPathEntry(MavenArchiveConfiguration config)
config - MavenArchiveConfigurationCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.