org.apache.maven.plugin.dependency.fromConfiguration
Class UnpackMojo
java.lang.Object
  
org.apache.maven.plugin.AbstractMojo
      
org.apache.maven.plugin.dependency.AbstractDependencyMojo
          
org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo
              
org.apache.maven.plugin.dependency.fromConfiguration.UnpackMojo
- All Implemented Interfaces: 
 - ContextEnabled, Mojo
 
@Mojo(name="unpack",
      defaultPhase=PROCESS_SOURCES,
      requiresProject=false,
      threadSafe=true)
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 1400739 2012-10-21 23:05:22Z hboutemy $
 
- Author:
 
  - Brian Fox
 
 
 
 
| Fields inherited from interface org.apache.maven.plugin.Mojo | 
ROLE | 
 
 
 
| Methods inherited from class org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo | 
getArtifact, getArtifactItems, getLocal, getOutputDirectory, isOverWriteIfNewer, isOverWriteReleases, isOverWriteSnapshots, isSkip, setArtifact, setArtifactItems, setLocalRepositoryDirectory, setOutputDirectory, setOverWriteIfNewer, setOverWriteReleases, setOverWriteSnapshots, setSkip, verifyRequirements | 
 
| Methods inherited from class org.apache.maven.plugin.dependency.AbstractDependencyMojo | 
copyFile, getArchiverManager, getArtifactCollector, getArtifactMetadataSource, getFactory, getLog, getProject, getRemoteRepos, getResolver, isUseJvmChmod, setArchiverManager, setArtifactCollector, setArtifactMetadataSource, setFactory, setLocal, setRemoteRepos, setResolver, setUseJvmChmod, unpack, unpack | 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
UnpackMojo
public UnpackMojo()
execute
public void execute()
             throws MojoExecutionException,
                    MojoFailureException
- Main entry into mojo. This method gets the ArtifactItems and iterates through each one passing it to
 unpackArtifact.
- Throws:
 MojoExecutionException - with a message if an error occurs.
MojoFailureException- See Also:
 ArtifactItem, 
AbstractFromConfigurationMojo.getArtifactItems(), 
unpackArtifact(ArtifactItem)
 
 
getProcessedArtifactItems
protected List<ArtifactItem> getProcessedArtifactItems(boolean removeVersion)
                                                throws MojoExecutionException
- Description copied from class: 
AbstractFromConfigurationMojo 
- Preprocesses the list of ArtifactItems. This method defaults the outputDirectory if not set and creates the
 output Directory if it doesn't exist.
- Overrides:
 getProcessedArtifactItems in class AbstractFromConfigurationMojo
 
- Parameters:
 removeVersion - remove the version from the filename.
- Returns:
 - An ArrayList of preprocessed ArtifactItems
 - Throws:
 MojoExecutionException - with a message if an error occurs.- See Also:
 ArtifactItem
 
 
getMarkersDirectory
public File getMarkersDirectory()
- Returns:
 - Returns the markersDirectory.
 
 
setMarkersDirectory
public void setMarkersDirectory(File theMarkersDirectory)
- Parameters:
 theMarkersDirectory - The markersDirectory to set.
 
getExcludes
public String getExcludes()
- Returns:
 - Returns a comma separated list of excluded items
 
 
setExcludes
public void setExcludes(String excludes)
- Parameters:
 excludes - A comma separated list of items to exclude i.e. **\/*.xml, **\/*.properties
 
getIncludes
public String getIncludes()
- Returns:
 - Returns a comma separated list of included items
 
 
setIncludes
public void setIncludes(String includes)
- Parameters:
 includes - A comma separated list of items to include i.e. **\/*.xml, **\/*.properties
 
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.