public class EarMavenArchiver
extends org.apache.maven.archiver.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 . |
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. |
org.codehaus.plexus.archiver.jar.Manifest |
getManifest(org.apache.maven.project.MavenProject project,
org.apache.maven.archiver.MavenArchiveConfiguration config)
Deprecated.
|
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) |
protected String |
getUserSuppliedClassPathEntry(org.apache.maven.archiver.MavenArchiveConfiguration config) |
configureReproducible, configureReproducibleBuild, createArchive, getArchiver, getManifest, getManifest, getManifest, parseBuildOutputTimestamp, parseOutputTimestamp, setArchiver, setBuildJdkSpecDefaultEntry, setCreatedBy, setOutputFile
public static final String CLASS_PATH_KEY
Class-Path
.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
project
- MavenProject
config
- MavenArchiveConfiguration
org.codehaus.plexus.archiver.jar.ManifestException
- in case of an errororg.apache.maven.artifact.DependencyResolutionRequiredException
- in case of an resolution error.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
getManifest
in class org.apache.maven.archiver.MavenArchiver
org.codehaus.plexus.archiver.jar.ManifestException
org.apache.maven.artifact.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(org.apache.maven.archiver.MavenArchiveConfiguration config)
config
- MavenArchiveConfiguration
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.