public class ReactorArtifact extends Object
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.
| Constructor and Description |
|---|
ReactorArtifact(org.apache.maven.artifact.Artifact mavenArtifact)
Convert a maven artifact to a ReactorArtifact
|
ReactorArtifact(org.eclipse.aether.artifact.Artifact aetherArtifact)
Convert a aether artifact to a ReactorArtifact
|
public ReactorArtifact(org.apache.maven.artifact.Artifact mavenArtifact)
mavenArtifact - the artifact to create a ReactorArtifact for.public ReactorArtifact(org.eclipse.aether.artifact.Artifact aetherArtifact)
aetherArtifact - the artifact to create a ReactorArtifact for.Copyright © 2018–2020 QAware GmbH. All rights reserved.