diff --git a/docs/modules/configuration/pages/deploy/maven/nexus2.adoc b/docs/modules/configuration/pages/deploy/maven/nexus2.adoc index 105afe43e..645f1d596 100644 --- a/docs/modules/configuration/pages/deploy/maven/nexus2.adoc +++ b/docs/modules/configuration/pages/deploy/maven/nexus2.adoc @@ -3,6 +3,7 @@ :deployer_name: Nexus2 :prefix: NEXUS2 :deployer_url: https://s01.oss.sonatype.org/service/local +:deployer_snapshot_url: https://s01.oss.sonatype.org/content/repositories/snapshot :default_auth: BASIC Deploys staged artifacts to link:https://help.sonatype.com/repomanager2[Sonatype {deployer_name} Repository Manager] instance. @@ -11,8 +12,6 @@ NOTE: You may use this deployer to publish releases to link:https://search.maven IMPORTANT: This feature *does not* support deploying artifacts other than JARs and POMs to a Maven compatible repository. -WARNING: Publication of snapshots is *not* allowed. - include::partial$legend.adoc[] [tabs] @@ -25,6 +24,12 @@ YAML:: ---- include::partial$deploy/maven/yaml/common-head.adoc[] + # URL where the {deployer_name} snapshots are enabled. + # If left unspecified, the `JRELEASER_{prefix}_${name}_SNAPSHOT_URL` + # environment variable must be defined. + # icon:exclamation-triangle[] icon:eye-slash[] + snapshotUrl: {deployer_snapshot_url} + # Closes the staging repository. # Defaults to `false`. # icon:dot-circle[] @@ -54,6 +59,12 @@ TOML:: ---- include::partial$deploy/maven/toml/common-head.adoc[] + # URL where the {deployer_name} snapshots are enabled. + # If left unspecified, the `JRELEASER_{prefix}_${name}_SNAPSHOT_URL` + # environment variable must be defined. + # icon:exclamation-triangle[] icon:eye-slash[] + snapshotUrl = "{deployer_snapshot_url}" + # Closes the staging repository. # Defaults to `false`. # icon:dot-circle[] @@ -83,6 +94,12 @@ JSON:: ---- include::partial$deploy/maven/json/common-head.adoc[] + // URL where the {deployer_name} snapshots are enabled. + // If left unspecified, the `JRELEASER_{prefix}_${name}_SNAPSHOT_URL` + // environment variable must be defined. + // icon:exclamation-triangle[] icon:eye-slash[] + "snapshotUrl": "{deployer_snapshot_url}", + // Closes the staging repository. // Defaults to `false`. // icon:dot-circle[] @@ -113,6 +130,14 @@ Maven:: ---- include::partial$deploy/maven/maven/common-head.adoc[] + + {deployer_snapshot_url} +