org.apache.maven.plugin.dependency.fromConfiguration
Class UnpackMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.maven.plugin.dependency.AbstractDependencyMojo
          extended by org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo
              extended by org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public final class UnpackMojo
extends AbstractFromConfigurationMojo

Goal that retrieves a list of artifacts from the repository and unpacks them in a defined location.

Since:
1.0
Version:
$Id: UnpackMojo.java 552528 2007-07-02 16:12:47Z markh $
Author:
Brian Fox

Field Summary
 
Fields inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo
archiverManager, artifactCollector, artifactMetadataSource, factory, local, outputAbsoluteArtifactFilename, project, reactorProjects, remoteRepos, resolver, silent
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
UnpackMojo()
           
 
Method Summary
 void execute()
          Main entry into mojo.
 java.io.File getMarkersDirectory()
           
 void setMarkersDirectory(java.io.File theMarkersDirectory)
           
 
Methods inherited from class org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo
getArtifact, getArtifactItems, getOutputDirectory, getProcessedArtifactItems, isOverWriteIfNewer, isOverWriteReleases, isOverWriteSnapshots, setArtifactItems, setOutputDirectory, setOverWriteIfNewer, setOverWriteReleases, setOverWriteSnapshots
 
Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLocal, getLog, getProject, getRemoteRepos, getResolver, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, unpack
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnpackMojo

public UnpackMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Main entry into mojo. This method gets the ArtifactItems and iterates through each one passing it to unpackArtifact.

Throws:
org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.
See Also:
ArtifactItem, AbstractFromConfigurationMojo.getArtifactItems(), unpackArtifact(ArtifactItem)

getMarkersDirectory

public java.io.File getMarkersDirectory()
Returns:
Returns the markersDirectory.

setMarkersDirectory

public void setMarkersDirectory(java.io.File theMarkersDirectory)
Parameters:
theMarkersDirectory - The markersDirectory to set.


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.