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, setOutputFile
public static final String CLASS_PATH_KEY
Class-Path
.public Manifest getManifest(MavenProject project, MavenArchiveConfiguration config) throws ManifestException, DependencyResolutionRequiredException
project
- MavenProject
config
- MavenArchiveConfiguration
ManifestException
- 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 MavenArchiver
ManifestException
DependencyResolutionRequiredException
protected String generateClassPathEntry(String classPathPrefix)
Class-Path
entry of the manifest according to the list of ear modules.classPathPrefix
- the classpath prefix to useClass-Path
entryprotected String getUserSuppliedClassPathEntry(MavenArchiveConfiguration config)
config
- MavenArchiveConfiguration
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.