Class MavenResolver


  • public class MavenResolver
    extends java.lang.Object
    Transitively resolves dependencies using Maven.
    Since:
    1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      MavenResolver()
      Creates a new resolver.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addArtifact​(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
      Add an artifact to resolve.
      void addArtifact​(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.lang.String type)
      Add an artifact to resolve.
      java.net.URL[] resolve()
      Downloads all of the artificts, all of the artificts they depend on and so on.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MavenResolver

        public MavenResolver()
        Creates a new resolver.
    • Method Detail

      • addArtifact

        public void addArtifact​(java.lang.String groupId,
                                java.lang.String artifactId,
                                java.lang.String version)
        Add an artifact to resolve.
        Parameters:
        groupId - the id of the group to which the dependency belongs
        artifactId - the id of the artifact to resolve
        version - the version of the artifact
      • addArtifact

        public void addArtifact​(java.lang.String groupId,
                                java.lang.String artifactId,
                                java.lang.String version,
                                java.lang.String type)
        Add an artifact to resolve.
        Parameters:
        groupId - the id of the group to which the dependency belongs
        artifactId - the id of the artifact to resolve
        version - the version of the artifact
        type - the type of the artifact
      • resolve

        public java.net.URL[] resolve()
        Downloads all of the artificts, all of the artificts they depend on and so on.
        Returns:
        the URLs to all artifacts