Class ArtifactUpload


public final class ArtifactUpload extends ArtifactTransfer
An upload of an artifact to a remote repository. A repository connector processing this upload has to use setException(ArtifactTransferException) to report the results of the transfer.
  • Constructor Details

    • ArtifactUpload

      public ArtifactUpload()
      Creates a new uninitialized upload.
    • ArtifactUpload

      @Deprecated public ArtifactUpload(org.eclipse.aether.artifact.Artifact artifact, File file)
      Deprecated.
      Creates a new upload with the specified properties.
      Parameters:
      artifact - The artifact to upload, may be null.
      file - The local file to upload the artifact from, may be null.
    • ArtifactUpload

      public ArtifactUpload(org.eclipse.aether.artifact.Artifact artifact, Path path)
      Creates a new upload with the specified properties.
      Parameters:
      artifact - The artifact to upload, may be null.
      path - The local file to upload the artifact from, may be null.
      Since:
      2.0.0
  • Method Details