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

      public ArtifactUpload(org.eclipse.aether.artifact.Artifact artifact, File file)
      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, File file, org.eclipse.aether.transform.FileTransformer fileTransformer)

      Creates a new upload with the specified properties.

      IMPORTANT When using a fileTransformer, the content of the file is stored in memory to ensure that file content and checksums stay in sync!

      Parameters:
      artifact - The artifact to upload, may be null.
      file - The local file to upload the artifact from, may be null.
      fileTransformer - The file transformer, may be null.
  • Method Details