Class GoOfflineMojo

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

@Mojo(name="go-offline", threadSafe=true) public class GoOfflineMojo extends AbstractResolveMojo
Goal that resolves all project dependencies, including plugins and reports and their dependencies.
Since:
2.0
Author:
Brian Fox, Maarten Mulders
  • Constructor Details

    • GoOfflineMojo

      public GoOfflineMojo()
  • Method Details

    • doExecute

      protected void doExecute() throws org.apache.maven.plugin.MojoExecutionException
      Main entry into mojo. Gets the list of dependencies, resolves all that are not in the Reactor, and iterates through displaying the resolved versions.
      Specified by:
      doExecute in class AbstractDependencyMojo
      Throws:
      org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.
    • resolveDependencyArtifacts

      protected Set<org.apache.maven.artifact.Artifact> resolveDependencyArtifacts() throws org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolverException
      This method resolves the dependency artifacts from the project.
      Returns:
      set of resolved dependency artifacts.
      Throws:
      org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolverException - in case of an error while resolving the artifacts.
    • resolvePluginArtifacts

      protected Set<org.apache.maven.artifact.Artifact> resolvePluginArtifacts() throws org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolverException
      This method resolves the plugin artifacts from the project.
      Returns:
      set of resolved plugin artifacts.
      Throws:
      org.apache.maven.shared.transfer.dependencies.resolve.DependencyResolverException - in case of an error while resolving the artifacts.
    • 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.