public class MavenArchiver extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REPOSITORY_LAYOUT
Repository layout.
|
static String |
REPOSITORY_LAYOUT_NONUNIQUE
Repository layout non unique.
|
static String |
SIMPLE_LAYOUT
The simply layout.
|
static String |
SIMPLE_LAYOUT_NONUNIQUE
simple layout non unique.
|
Constructor and Description |
---|
MavenArchiver() |
Modifier and Type | Method and Description |
---|---|
void |
createArchive(MavenSession session,
MavenProject project,
MavenArchiveConfiguration archiveConfiguration) |
JarArchiver |
getArchiver() |
Manifest |
getManifest(MavenProject project,
ManifestConfiguration config)
Return a pre-configured manifest
|
Manifest |
getManifest(MavenSession mavenSession,
MavenProject project,
ManifestConfiguration config) |
protected Manifest |
getManifest(MavenSession session,
MavenProject project,
ManifestConfiguration config,
Map<String,String> entries) |
Manifest |
getManifest(MavenSession session,
MavenProject project,
MavenArchiveConfiguration config) |
void |
setArchiver(JarArchiver archiver) |
void |
setOutputFile(File outputFile) |
public static final String SIMPLE_LAYOUT
public static final String REPOSITORY_LAYOUT
public static final String SIMPLE_LAYOUT_NONUNIQUE
public static final String REPOSITORY_LAYOUT_NONUNIQUE
public Manifest getManifest(MavenSession session, MavenProject project, MavenArchiveConfiguration config) throws ManifestException, DependencyResolutionRequiredException
session
- The Maven Session.project
- The Maven Project.config
- The MavenArchiveConfigurationManifest
ManifestException
- In case of a failure.DependencyResolutionRequiredException
- Resolution failure.public Manifest getManifest(MavenProject project, ManifestConfiguration config) throws ManifestException, DependencyResolutionRequiredException
project
- MavenProject
config
- ManifestConfiguration
Manifest
ManifestException
- Manifest exception.DependencyResolutionRequiredException
- Dependency resolution exception.public Manifest getManifest(MavenSession mavenSession, MavenProject project, ManifestConfiguration config) throws ManifestException, DependencyResolutionRequiredException
mavenSession
- MavenSession
project
- MavenProject
config
- ManifestConfiguration
Manifest
ManifestException
- The manifest exception.DependencyResolutionRequiredException
- The dependency resolution required exception.protected Manifest getManifest(MavenSession session, MavenProject project, ManifestConfiguration config, Map<String,String> entries) throws ManifestException, DependencyResolutionRequiredException
session
- MavenSession
project
- MavenProject
config
- ManifestConfiguration
entries
- The entries.Manifest
ManifestException
- The manifest exception.DependencyResolutionRequiredException
- The dependency resolution required exception.public JarArchiver getArchiver()
JarArchiver
public void setArchiver(JarArchiver archiver)
archiver
- JarArchiver
public void setOutputFile(File outputFile)
outputFile
- Set output file.public void createArchive(MavenSession session, MavenProject project, MavenArchiveConfiguration archiveConfiguration) throws ManifestException, IOException, DependencyResolutionRequiredException
session
- MavenSession
project
- MavenProject
archiveConfiguration
- MavenArchiveConfiguration
ArchiverException
- Archiver Exception.ManifestException
- Manifest Exception.IOException
- IO Exception.DependencyResolutionRequiredException
- Dependency resolution exception.Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.