Class UnpackDependenciesMojo

All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="unpack-dependencies", requiresDependencyResolution=TEST, defaultPhase=PROCESS_SOURCES, threadSafe=true) public class UnpackDependenciesMojo extends AbstractFromDependenciesMojo
Goal that unpacks the project dependencies from the repository to a defined location.
Since:
1.0
Author:
Brian Fox
  • Constructor Details

    • UnpackDependenciesMojo

      public UnpackDependenciesMojo()
  • Method Details

    • doExecute

      protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException
      Main entry into mojo. This method gets the dependencies and iterates through each one passing it to DependencyUtil.unpackFile().
      Specified by:
      doExecute in class AbstractDependencyMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.
      See Also:
    • getMarkedArtifactFilter

      protected org.apache.maven.shared.artifact.filter.collection.ArtifactsFilter getMarkedArtifactFilter()
      Description copied from class: AbstractDependencyFilterMojo
      Return an ArtifactsFilter indicating which artifacts must be filtered out.
      Specified by:
      getMarkedArtifactFilter in class AbstractDependencyFilterMojo
      Returns:
      an ArtifactsFilter indicating which artifacts must be filtered out.
    • 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
    • setEncoding

      public void setEncoding(String encoding)
      Parameters:
      encoding - The encoding to set.
      Since:
      3.0
    • getEncoding

      public String getEncoding()
      Returns:
      Returns the encoding.
      Since:
      3.0
    • getFileMappers

      public org.codehaus.plexus.components.io.filemappers.FileMapper[] getFileMappers()
      Returns:
      FileMappers to be used for rewriting each target path, or null if no rewriting shall happen.
      Since:
      3.1.2
    • setFileMappers

      public void setFileMappers(org.codehaus.plexus.components.io.filemappers.FileMapper[] fileMappers)
      Parameters:
      fileMappers - FileMappers to be used for rewriting each target path, or null if no rewriting shall happen.
      Since:
      3.1.2