@Named(value="reactor") class ReactorReader extends java.lang.Object implements MavenWorkspaceReader
Modifier and Type | Field and Description |
---|---|
private static java.util.Collection<java.lang.String> |
COMPILE_PHASE_TYPES |
static java.lang.String |
HINT |
private java.util.Map<java.lang.String,java.util.List<MavenProject>> |
projectsByGA |
private java.util.Map<java.lang.String,MavenProject> |
projectsByGAV |
private org.eclipse.aether.repository.WorkspaceRepository |
repository |
Constructor and Description |
---|
ReactorReader(MavenSession session) |
Modifier and Type | Method and Description |
---|---|
private boolean |
attachedArtifactComparison(org.eclipse.aether.artifact.Artifact requested,
org.eclipse.aether.artifact.Artifact attached) |
private java.io.File |
find(MavenProject project,
org.eclipse.aether.artifact.Artifact artifact) |
java.io.File |
findArtifact(org.eclipse.aether.artifact.Artifact artifact) |
private org.eclipse.aether.artifact.Artifact |
findMatchingArtifact(MavenProject project,
org.eclipse.aether.artifact.Artifact requestedArtifact)
Tries to resolve the specified artifact from the artifacts of the given project.
|
Model |
findModel(org.eclipse.aether.artifact.Artifact artifact) |
java.util.List<java.lang.String> |
findVersions(org.eclipse.aether.artifact.Artifact artifact) |
org.eclipse.aether.repository.WorkspaceRepository |
getRepository() |
private boolean |
hasArtifactFileFromPackagePhase(org.eclipse.aether.artifact.Artifact projectArtifact) |
private boolean |
hasBeenPackaged(MavenProject project) |
private static boolean |
isTestArtifact(org.eclipse.aether.artifact.Artifact artifact)
Determines whether the specified artifact refers to test classes.
|
public static final java.lang.String HINT
private static final java.util.Collection<java.lang.String> COMPILE_PHASE_TYPES
private java.util.Map<java.lang.String,MavenProject> projectsByGAV
private java.util.Map<java.lang.String,java.util.List<MavenProject>> projectsByGA
private org.eclipse.aether.repository.WorkspaceRepository repository
@Inject public ReactorReader(MavenSession session)
public org.eclipse.aether.repository.WorkspaceRepository getRepository()
getRepository
in interface org.eclipse.aether.repository.WorkspaceReader
public java.io.File findArtifact(org.eclipse.aether.artifact.Artifact artifact)
findArtifact
in interface org.eclipse.aether.repository.WorkspaceReader
public java.util.List<java.lang.String> findVersions(org.eclipse.aether.artifact.Artifact artifact)
findVersions
in interface org.eclipse.aether.repository.WorkspaceReader
public Model findModel(org.eclipse.aether.artifact.Artifact artifact)
findModel
in interface MavenWorkspaceReader
private java.io.File find(MavenProject project, org.eclipse.aether.artifact.Artifact artifact)
private boolean hasArtifactFileFromPackagePhase(org.eclipse.aether.artifact.Artifact projectArtifact)
private boolean hasBeenPackaged(MavenProject project)
private org.eclipse.aether.artifact.Artifact findMatchingArtifact(MavenProject project, org.eclipse.aether.artifact.Artifact requestedArtifact)
project
- The project to try to resolve the artifact from, must not be null
.requestedArtifact
- The artifact to resolve, must not be null
.null
if not found. Note that thisprivate boolean attachedArtifactComparison(org.eclipse.aether.artifact.Artifact requested, org.eclipse.aether.artifact.Artifact attached)
private static boolean isTestArtifact(org.eclipse.aether.artifact.Artifact artifact)
artifact
- The artifact to check, must not be null
.true
if the artifact refers to test classes, false
otherwise.