Class AbstractManagedDependenciesMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.atlassian.crowd.maven.plugin.dependecies.AbstractManagedDependenciesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
CopyManagedDependenciesMojo, ListPackagesInManagedDependencyMojo

public abstract class AbstractManagedDependenciesMojo extends org.apache.maven.plugin.AbstractMojo
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.maven.project.MavenProject
    buildProject(org.eclipse.aether.artifact.Artifact artifact)
    Builds a Maven project from an artifact.
    protected org.eclipse.aether.artifact.Artifact
    resolveArtifact(String artifactCoords)
    Resolves an artifact from the repository.
    List<org.eclipse.aether.artifact.Artifact>
    retrieveTransitiveDependencies(String groupId, String artifactId, String extension, String version)
    Retrieves the transitive dependencies for a given artifact.

    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

    Methods inherited from interface org.apache.maven.plugin.Mojo

    execute
  • Constructor Details

    • AbstractManagedDependenciesMojo

      public AbstractManagedDependenciesMojo()
  • Method Details

    • retrieveTransitiveDependencies

      public List<org.eclipse.aether.artifact.Artifact> retrieveTransitiveDependencies(String groupId, String artifactId, String extension, String version)
      Retrieves the transitive dependencies for a given artifact.
      Parameters:
      groupId - the group id
      artifactId - the artifact id
      version - the version
      Returns:
      the transitive dependencies
      Throws:
      Exception - if the dependencies cannot be retrieved
    • buildProject

      protected org.apache.maven.project.MavenProject buildProject(org.eclipse.aether.artifact.Artifact artifact)
      Builds a Maven project from an artifact.
      Parameters:
      artifact - the artifact
      Returns:
      the Maven project
    • resolveArtifact

      protected org.eclipse.aether.artifact.Artifact resolveArtifact(String artifactCoords)
      Resolves an artifact from the repository.
      Parameters:
      artifactCoords - the artifact coordinates in the format <groupId>:<artifactId>:<extension>:<classifier>:<version>
      Returns:
      the resolved artifact