Maven

Deploy staged artifacts to target Maven compatible repositories.

Staged artifacts are typically produced by your build tool of choice.

Maven

The following command places all staged files inside target/staging-deploy:

$ mvn deploy -DaltDeploymentRepository=local::file:./target/staging-deploy

Configuration

Legend:

  • required

  • optional

  • may use environment variable

  • accepts Name Templates

  • YAML

  • TOML

  • JSON

  • Maven

  • Gradle

# 
deploy:
  maven:
    # Enable or disable all configured deployers.
    # Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
    # Defaults to `ALWAYS`.
    #  
    active: ALWAYS
# 
[deploy.maven]

  # Enable or disable all configured deployers.
  # Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
  # Defaults to `ALWAYS`.
  #  
  active = "ALWAYS"
{
  // 
  "deploy": {
    "maven": {
      // Enable or disable all configured deployers.
      // Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
      // Defaults to `ALWAYS`.
      //  
      "active": "ALWAYS"
    }
  }
}
<jreleaser>
  <!--
    
  -->
  <deploy>
    <maven>
      <!--
        Enable or disable all configured deployers.
        Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
        Defaults to `ALWAYS`.
         
      -->
      <active>ALWAYS</active>
    </maven>
  </deploy>
</jreleaser>
jreleaser {
  // 
  deploy {
    maven{
      // Enable or disable all configured deployers.
      // Supported values are [`NEVER`, `ALWAYS`, `RELEASE`, `SNAPSHOT`].
      // Defaults to `ALWAYS`.
      //  
      active = 'ALWAYS'
    }
  }
}

Environment

When not explicitly set, the value of the following properties may be resolved from an environment variable or a system property as shown in the table. The system property takes precedence over the environment variable.

System Property Environment Variable

active

jreleaser.deploy.maven.active

JRELEASER_DEPLOY_MAVEN_ACTIVE