org.jboss.maven.plugins.thirdparty
Class MavenDeployMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jboss.maven.plugins.thirdparty.MavenDeployMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class MavenDeployMojo
extends org.apache.maven.plugin.AbstractMojo

Mojo for taking a thirdparty deployment (component-info.xml, lib/*.jar, etc..) and deploying it to a maven repository. This mojo functions in a similar way to the deploy-file goal of the maven-deploy-plugin.


Field Summary
static java.util.Map KNOWN_PACKAGING_TYPES
           
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MavenDeployMojo()
           
 
Method Summary
 void execute()
          Main plugin execution
 org.apache.maven.artifact.deployer.ArtifactDeployer getDeployer()
           
 org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()
           
protected  org.apache.maven.model.Model readModel(java.io.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)
           
 java.io.File writeModel(org.apache.maven.model.Model model)
          Write a POM model to a file
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KNOWN_PACKAGING_TYPES

public static final java.util.Map KNOWN_PACKAGING_TYPES
Constructor Detail

MavenDeployMojo

public MavenDeployMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Main plugin execution

Throws:
org.apache.maven.plugin.MojoExecutionException

readModel

protected org.apache.maven.model.Model readModel(java.io.File pomFile)
                                          throws org.apache.maven.plugin.MojoExecutionException
Extract the Model from the specified file.

Parameters:
pomFile -
Returns:
Throws:
org.apache.maven.plugin.MojoExecutionException - if the file doesn't exist of cannot be read.

writeModel

public java.io.File writeModel(org.apache.maven.model.Model model)
                        throws org.apache.maven.plugin.MojoExecutionException
Write a POM model to a file

Parameters:
model -
Returns:
Throws:
org.apache.maven.plugin.MojoExecutionException

getDeployer

public org.apache.maven.artifact.deployer.ArtifactDeployer getDeployer()

setDeployer

public void setDeployer(org.apache.maven.artifact.deployer.ArtifactDeployer deployer)

getLocalRepository

public org.apache.maven.artifact.repository.ArtifactRepository getLocalRepository()

setLocalRepository

public void setLocalRepository(org.apache.maven.artifact.repository.ArtifactRepository localRepository)


Copyright © 2007-2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.