org.bsc.maven.plugin.libutils
Class DeployFolderMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.bsc.maven.plugin.libutils.AbstractDeployMojo
          extended by org.bsc.maven.plugin.libutils.DeployFolderMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, Constants

@Mojo(name="deploy-folder",
      requiresProject=true)
public class DeployFolderMojo
extends AbstractDeployMojo
implements Constants

Installs artifacts from folder to remote repository.


Field Summary
protected  org.apache.maven.project.MavenProject project
           
 
Fields inherited from interface org.bsc.maven.plugin.libutils.Constants
DEPENDENCIES_FILENAME, POM_BACKUP_FILENAME
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DeployFolderMojo()
           
 
Method Summary
 void execute()
           
protected  void initProperties(File pomFile)
           
protected  org.apache.maven.model.Model readModel(File pomFile)
          Extract the Model from the specified file.
 
Methods inherited from class org.bsc.maven.plugin.libutils.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
 

Field Detail

project

@Component
protected org.apache.maven.project.MavenProject project
Constructor Detail

DeployFolderMojo

public DeployFolderMojo()
Method Detail

initProperties

protected void initProperties(File pomFile)
                       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(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 © 2009-2013. All Rights Reserved.