Class ReactorArtifact


  • public class ReactorArtifact
    extends java.lang.Object
    Describes 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 ReactorArtifact
      ReactorArtifact​(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
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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.
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object