Class MavenRepository

java.lang.Object
org.smallmind.artifact.maven.MavenRepository

public class MavenRepository extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    MavenRepository(String repositoryId, boolean offline)
     
    MavenRepository(String settingsDirectory, String repositoryId, boolean offline)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.aether.artifact.Artifact
    acquireArtifact(org.eclipse.aether.DefaultRepositorySystemSession session, org.eclipse.aether.artifact.Artifact artifact)
     
    org.eclipse.aether.artifact.Artifact
    acquireArtifact(org.eclipse.aether.DefaultRepositorySystemSession session, MavenCoordinate mavenCoordinate)
     
    org.eclipse.aether.DefaultRepositorySystemSession
     
    org.eclipse.aether.artifact.Artifact[]
    resolve(org.eclipse.aether.DefaultRepositorySystemSession session, org.eclipse.aether.artifact.Artifact artifact)
     

    Methods inherited from class java.lang.Object

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

    • MavenRepository

      public MavenRepository(String repositoryId, boolean offline) throws org.apache.maven.settings.building.SettingsBuildingException
      Throws:
      org.apache.maven.settings.building.SettingsBuildingException
    • MavenRepository

      public MavenRepository(String settingsDirectory, String repositoryId, boolean offline) throws org.apache.maven.settings.building.SettingsBuildingException
      Throws:
      org.apache.maven.settings.building.SettingsBuildingException
  • Method Details

    • generateSession

      public org.eclipse.aether.DefaultRepositorySystemSession generateSession()
    • acquireArtifact

      public org.eclipse.aether.artifact.Artifact acquireArtifact(org.eclipse.aether.DefaultRepositorySystemSession session, MavenCoordinate mavenCoordinate) throws org.eclipse.aether.resolution.ArtifactResolutionException
      Throws:
      org.eclipse.aether.resolution.ArtifactResolutionException
    • acquireArtifact

      public org.eclipse.aether.artifact.Artifact acquireArtifact(org.eclipse.aether.DefaultRepositorySystemSession session, org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.resolution.ArtifactResolutionException
      Throws:
      org.eclipse.aether.resolution.ArtifactResolutionException
    • resolve

      public org.eclipse.aether.artifact.Artifact[] resolve(org.eclipse.aether.DefaultRepositorySystemSession session, org.eclipse.aether.artifact.Artifact artifact) throws org.eclipse.aether.collection.DependencyCollectionException, org.eclipse.aether.resolution.DependencyResolutionException
      Throws:
      org.eclipse.aether.collection.DependencyCollectionException
      org.eclipse.aether.resolution.DependencyResolutionException