public class MavenDeployMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
static Map |
KNOWN_PACKAGING_TYPES |
| Constructor and Description |
|---|
MavenDeployMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Main plugin execution
|
String |
getArtifactBaseName(String artifactFileName)
Get the name of the file without the extention or the -source qualifier.
|
org.apache.maven.artifact.deployer.ArtifactDeployer |
getDeployer() |
org.apache.maven.artifact.repository.ArtifactRepository |
getLocalRepository() |
protected org.apache.maven.model.Model |
readModel(File pomFile)
Extract the Model from the specified file.
|
void |
setDeployer(org.apache.maven.artifact.deployer.ArtifactDeployer deployer) |
void |
setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository) |
File |
writeModel(org.apache.maven.model.Model model)
Write a POM model to a file
|
public static final Map KNOWN_PACKAGING_TYPES
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.model.Model readModel(File pomFile) throws org.apache.maven.plugin.MojoExecutionException
pomFile - org.apache.maven.plugin.MojoExecutionException - if the file doesn't exist of cannot be read.public File writeModel(org.apache.maven.model.Model model) throws org.apache.maven.plugin.MojoExecutionException
model - org.apache.maven.plugin.MojoExecutionExceptionpublic String getArtifactBaseName(String artifactFileName)
artifactFileName - public org.apache.maven.artifact.deployer.ArtifactDeployer getDeployer()
public void setDeployer(org.apache.maven.artifact.deployer.ArtifactDeployer deployer)
public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
public void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)
Copyright © 2007-2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.