Class ArtifactResolutionHelper


  • public class ArtifactResolutionHelper
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepos  
      private org.eclipse.aether.RepositorySystemSession repoSession  
      private org.eclipse.aether.RepositorySystem repoSystem  
    • Constructor Summary

      Constructors 
      Constructor Description
      ArtifactResolutionHelper​(org.eclipse.aether.RepositorySystem repoSystem, org.eclipse.aether.RepositorySystemSession repoSession, java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.eclipse.aether.graph.DependencyNode> getCompilationDependencies​(org.eclipse.aether.artifact.Artifact inputArtifact)
      Returns the dependencies applicable when compiling the given artifact (as far as that's possible, if e.g.
      org.eclipse.aether.artifact.Artifact resolveArtifact​(org.eclipse.aether.artifact.Artifact inputArtifact)  
      org.eclipse.aether.artifact.Artifact resolveArtifact​(ArtifactConfiguration artifact)  
      • Methods inherited from class java.lang.Object

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

      • repoSystem

        private org.eclipse.aether.RepositorySystem repoSystem
      • repoSession

        private org.eclipse.aether.RepositorySystemSession repoSession
      • remoteRepos

        private java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepos
    • Constructor Detail

      • ArtifactResolutionHelper

        public ArtifactResolutionHelper​(org.eclipse.aether.RepositorySystem repoSystem,
                                        org.eclipse.aether.RepositorySystemSession repoSession,
                                        java.util.List<org.eclipse.aether.repository.RemoteRepository> remoteRepos)
    • Method Detail

      • resolveArtifact

        public org.eclipse.aether.artifact.Artifact resolveArtifact​(ArtifactConfiguration artifact)
                                                             throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • resolveArtifact

        public org.eclipse.aether.artifact.Artifact resolveArtifact​(org.eclipse.aether.artifact.Artifact inputArtifact)
                                                             throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • getCompilationDependencies

        public java.util.List<org.eclipse.aether.graph.DependencyNode> getCompilationDependencies​(org.eclipse.aether.artifact.Artifact inputArtifact)
                                                                                           throws org.apache.maven.plugin.MojoExecutionException
        Returns the dependencies applicable when compiling the given artifact (as far as that's possible, if e.g. the POM of the dependency doesn't contain specific dependencies used during compilation, we cannot retrieve them here).
        Throws:
        org.apache.maven.plugin.MojoExecutionException