Class ReactorArtifact
- java.lang.Object
-
- de.qaware.maven.plugin.offline.ReactorArtifact
-
public class ReactorArtifact extends java.lang.ObjectDescribes an artifact in the current build reactor. Used to compare artifacts in a set.To determine if an artifact to download is part of the current reactor (and thus should not be downloaded from the internet) we have to test if an artifact with the same groupId, artifactId and version is part of the build reactor.
Since a maven project can output multiple artifacts with different types and classifiers, we explicitly do not test for those properties. This is not 100% correct, since it theoretically possible to output an artifact with the same groupId:artifactId:version identifier and different type/classifier from different projects. But the information on which additional artifacts are produced by a project are not available to the go-offline-maven plugin, since they are added dynamically at build time. So we have to live with this fuzzyness.
- Author:
- andreas.janning
-
-
Constructor Summary
Constructors Constructor Description ReactorArtifact(org.apache.maven.artifact.Artifact mavenArtifact)Convert a maven artifact to a ReactorArtifactReactorArtifact(org.eclipse.aether.artifact.Artifact aetherArtifact)Convert a aether artifact to a ReactorArtifact
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
ReactorArtifact
public ReactorArtifact(org.apache.maven.artifact.Artifact mavenArtifact)
Convert a maven artifact to a ReactorArtifact- Parameters:
mavenArtifact- the artifact to create a ReactorArtifact for.
-
ReactorArtifact
public ReactorArtifact(org.eclipse.aether.artifact.Artifact aetherArtifact)
Convert a aether artifact to a ReactorArtifact- Parameters:
aetherArtifact- the artifact to create a ReactorArtifact for.
-
-