Class MvnDeployDestination

java.lang.Object
org.jdrupes.builder.mvnrepo.MvnPublishingDestination
org.jdrupes.builder.mvnrepo.MvnDeployDestination

A Maven publishing destination that uploads artifacts using the traditional Maven deployment approach.

This implementation of a MvnPublishingDestination uploads artifacts and their associated metadata (like maven-metadata.xml) individually to the specified repository URI. It is typically used for publishing snapshots or deploying to internal Maven repositories.

  • Constructor Details

    • MvnDeployDestination

      public MvnDeployDestination(MvnVersionType... publicationTypes)
      Initializes a new Maven deploy destination.
      Parameters:
      publicationTypes - the supported publication types
  • Method Details

    • repositoryUri

      Sets the Maven repository URI.
      Parameters:
      uri - the repository URI
      Returns:
      this destination
    • repositoryUri

      public URI repositoryUri()
      Returns the repository URI. Defaults to https://central.sonatype.com/repository/maven-snapshots/ if this destination was created specifically for publication type SNAPSHOT.
      Returns:
      the uri
    • toString

      public String toString()
      Overrides:
      toString in class Object