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

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'
    }
  }
}
When not explicitly set, the value of active may be resolved from an environment variable JRELEASER_DEPLOY_MAVEN_ACTIVE or from a system property jreleaser.deploy.maven.active. The system property takes precedence over the environment variable.