Class LocalWorkspace

java.lang.Object
io.quarkus.bootstrap.resolver.maven.workspace.LocalWorkspace
All Implemented Interfaces:
ProjectModuleResolver, org.apache.maven.model.resolution.WorkspaceModelResolver, org.eclipse.aether.repository.WorkspaceReader

public class LocalWorkspace extends Object implements org.apache.maven.model.resolution.WorkspaceModelResolver, org.eclipse.aether.repository.WorkspaceReader, ProjectModuleResolver
Author:
Alexey Loubyansky
  • Constructor Details

    • LocalWorkspace

      public LocalWorkspace()
  • Method Details

    • addProject

      protected void addProject(LocalProject project)
    • getProject

      public LocalProject getProject(String groupId, String artifactId)
    • getProject

      public LocalProject getProject(io.quarkus.maven.dependency.ArtifactKey key)
    • getLastModified

      public long getLastModified()
      The latest last modified time of all the POMs in the workspace.
      Returns:
      the latest last modified time of all the POMs in the workspace
    • getId

      public int getId()
      This is essentially a hash code derived from each module's key.
      Returns:
      a hash code derived from each module's key
    • resolveRawModel

      public org.apache.maven.model.Model resolveRawModel(String groupId, String artifactId, String versionConstraint)
      Specified by:
      resolveRawModel in interface org.apache.maven.model.resolution.WorkspaceModelResolver
    • resolveEffectiveModel

      public org.apache.maven.model.Model resolveEffectiveModel(String groupId, String artifactId, String versionConstraint)
      Specified by:
      resolveEffectiveModel in interface org.apache.maven.model.resolution.WorkspaceModelResolver
    • getProjects

      public Map<io.quarkus.maven.dependency.ArtifactKey,LocalProject> getProjects()
    • getRepository

      public org.eclipse.aether.repository.WorkspaceRepository getRepository()
      Specified by:
      getRepository in interface org.eclipse.aether.repository.WorkspaceReader
    • findArtifact

      public File findArtifact(org.eclipse.aether.artifact.Artifact artifact)
      Specified by:
      findArtifact in interface org.eclipse.aether.repository.WorkspaceReader
    • getLocalProjectOrNull

      public LocalProject getLocalProjectOrNull(String groupId, String artifactId, String version)
    • getFileName

      public static String getFileName(org.eclipse.aether.artifact.Artifact artifact)
    • findVersions

      public List<String> findVersions(org.eclipse.aether.artifact.Artifact artifact)
      Specified by:
      findVersions in interface org.eclipse.aether.repository.WorkspaceReader
    • getResolvedVersion

      public String getResolvedVersion()
    • getProjectModule

      public io.quarkus.bootstrap.workspace.WorkspaceModule getProjectModule(String groupId, String artifactId, String version)
      Specified by:
      getProjectModule in interface ProjectModuleResolver