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.
|
org.codehaus.plexus.archiver.jar.Manifest |
getManifest(MavenProject project,
MavenArchiveConfiguration config)
Deprecated.
|
org.codehaus.plexus.archiver.jar.Manifest |
getManifest(MavenSession session,
MavenProject project,
MavenArchiveConfiguration config) |
protected String |
getUserSuppliedClassPathEntry(MavenArchiveConfiguration config) |
createArchive, createArchive, getArchiver, getManifest, getManifest, getManifest, setArchiver, setOutputFile
public static final String CLASS_PATH_KEY
Class-Path
.public org.codehaus.plexus.archiver.jar.Manifest getManifest(MavenProject project, MavenArchiveConfiguration config) throws org.codehaus.plexus.archiver.jar.ManifestException, DependencyResolutionRequiredException
getManifest
in class MavenArchiver
project
- MavenProject
config
- MavenArchiveConfiguration
org.codehaus.plexus.archiver.jar.ManifestException
- in case of an errorDependencyResolutionRequiredException
- in case of an resolution error.public org.codehaus.plexus.archiver.jar.Manifest getManifest(MavenSession session, MavenProject project, MavenArchiveConfiguration config) throws org.codehaus.plexus.archiver.jar.ManifestException, DependencyResolutionRequiredException
getManifest
in class MavenArchiver
org.codehaus.plexus.archiver.jar.ManifestException
DependencyResolutionRequiredException
protected String generateClassPathEntry(String classPathPrefix)
classPathPrefix
- the classpath prefix to useprotected String getUserSuppliedClassPathEntry(MavenArchiveConfiguration config)
config
- MavenArchiveConfiguration
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.