org.apache.maven.plugin.deploy
Class DeployFileMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.deploy.AbstractDeployMojo
          extended by org.apache.maven.plugin.deploy.DeployFileMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class DeployFileMojo
extends AbstractDeployMojo

Installs the artifact in the remote repository.

Author:
Allan Ramirez

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DeployFileMojo()
           
 
Method Summary
 void execute()
           
protected  void initProperties()
           
protected  org.apache.maven.model.Model readModel(java.io.File pomFile)
          Extract the Model from the specified file.
 
Methods inherited from class org.apache.maven.plugin.deploy.AbstractDeployMojo
getDeployer, getLocalRepository, setDeployer, setLocalRepository
 
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
 

Constructor Detail

DeployFileMojo

public DeployFileMojo()
Method Detail

initProperties

protected void initProperties()
                       throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Specified by:
execute in interface org.apache.maven.plugin.Mojo
Specified by:
execute in class AbstractDeployMojo
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.


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.