You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`NPM_TOKEN`| Optional | Registry authentication token (either [npm.js publishing token](https://docs.npmjs.com/creating-and-viewing-authentication-tokens) or a [GitHub personal access token](https://help.github.com/en/packages/using-github-packages-with-your-projects-ecosystem/configuring-npm-for-use-with-github-packages#authenticating-to-github-packages)), not used for AWS CodeArtifact |
72
+
|`NPM_TRUSTED_PUBLISHER`| Optional | Use a [Trusted Publisher](https://docs.npmjs.com/trusted-publishers) configuration to publish packages. Requires npm CLI version 11.5.1 or later. When set, `NPM_TOKEN` will be ignored. |
72
73
|`NPM_REGISTRY`| Optional | The registry URL (defaults to "registry.npmjs.org"). Use "npm.pkg.github.com" to publish to GitHub Packages. Use repository endpoint for AWS CodeAtifact, e.g. "my-domain-111122223333.d.codeartifact.us-west-2.amazonaws.com/npm/my_repo/". |
73
74
|`NPM_DIST_TAG`| Optional | Registers the published package with the given [dist-tag](https://docs.npmjs.com/cli/dist-tag) (e.g. `next`, default is `latest`) |
74
75
|`NPM_ACCESS_LEVEL`| Optional | Publishes the package with the given [access level](https://docs.npmjs.com/cli/v8/commands/npm-publish#access) (e.g. `public`, default is `restricted` for scoped packages and `public` for unscoped packages) |
@@ -107,23 +108,22 @@ npx publib-maven [DIR]
107
108
108
109
The server type is selected using the `MAVEN_SERVER_ID` variable.
109
110
110
-
-`MAVEN_SERVER_ID=ossrh`; this is currently the default but will stop working in July 2025. Publish to the old OSSRH Nexus server.
111
-
-`MAVEN_SERVER_ID=central-ossrh`; publish to the new Central Publishing platform using a service endpoint more-or-less compatible with the old OSSRH Nexus server. This is required to publish to Maven Central starting July 2025.
112
-
-`MAVEN_SERVER_ID=<anything else>`; publish to a custom Nexus server.
| (all) |`MAVEN_SERVER_ID`| Yes going forward | Either `ossrh` (default but deprecated), `central-ossrh`, or any other string for a custom Nexus server. |
118
-
| (all) |`MAVEN_USERNAME` and `MAVEN_PASSWORD`| Yes | Username and password for maven repository. For Maven Central, you will need to [Create JIRA account](https://issues.sonatype.org/secure/Signup!default.jspa) and then request a [new project](https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134). Read the [OSSRH guide](https://central.sonatype.org/pages/ossrh-guide.html) for more details. |
119
-
| (all) |`MAVEN_DRYRUN`| No | Set to "true" for a dry run |
120
-
| (all) |`MAVEN_VERBOSE`| No | Make Maven print debug output if set to `true`|
121
-
|`central-ossrh`|`MAVEN_GPG_PRIVATE_KEY[_FILE]` and `MAVEN_GPG_PRIVATE_KEY_PASSPHRASE`| Yes | GPG private key or file that includes it. This is used to sign your Maven packages. See instructions below |
122
-
|`central-ossrh`|`MAVEN_ENDPOINT`| No | URL of Nexus repository. Defaults to `https://ossrh-staging-api.central.sonatype.com/`. |
123
-
|`<custom>`|`MAVEN_REPOSITORY_URL`| No | Deployment repository when not deploying to Maven Central |
124
-
|`ossrh` (deprecated) |`MAVEN_GPG_PRIVATE_KEY[_FILE]` and `MAVEN_GPG_PRIVATE_KEY_PASSPHRASE`| Yes | GPG private key or file that includes it. This is used to sign your Maven packages. See instructions below |
125
-
|`ossrh` (deprecated) |`MAVEN_STAGING_PROFILE_ID`| Yes | Central Publisher (sonatype) staging profile ID, corresponding to namespace (e.g. `com.sonatype.software`). |
126
-
|`ossrh` (deprecated) |`MAVEN_ENDPOINT`| No | URL of Nexus repository. Defaults to `https://central.sonatype.com`. |
111
+
*`MAVEN_SERVER_ID=ossrh`; this is currently the default but will stop working in July 2025. Publish to the old OSSRH Nexus server.
112
+
*`MAVEN_SERVER_ID=central-ossrh`; publish to the new Central Publishing platform using a service endpoint more-or-less compatible with the old OSSRH Nexus server. This is required to publish to Maven Central starting July 2025.
113
+
*`MAVEN_SERVER_ID=<anything else>`; publish to a custom Nexus server.
| (all) |`MAVEN_SERVER_ID`| Yes going forward | Either `ossrh` (default but deprecated), `central-ossrh`, or any other string for a custom Nexus server. |
118
+
| (all) |`MAVEN_USERNAME` and `MAVEN_PASSWORD`| Yes | Username and password for maven repository. For Maven Central, you will need to [Create JIRA account](https://issues.sonatype.org/secure/Signup!default.jspa) and then request a [new project](https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134). Read the [OSSRH guide](https://central.sonatype.org/pages/ossrh-guide.html) for more details. |
119
+
| (all) |`MAVEN_DRYRUN`| No | Set to "true" for a dry run |
120
+
| (all) |`MAVEN_VERBOSE`| No | Make Maven print debug output if set to `true`|
121
+
|`central-ossrh`|`MAVEN_GPG_PRIVATE_KEY[_FILE]` and `MAVEN_GPG_PRIVATE_KEY_PASSPHRASE`| Yes | GPG private key or file that includes it. This is used to sign your Maven packages. See instructions below |
122
+
|`central-ossrh`|`MAVEN_ENDPOINT`| No | URL of Nexus repository. Defaults to `https://ossrh-staging-api.central.sonatype.com/`. |
123
+
|`<custom>`|`MAVEN_REPOSITORY_URL`| No | Deployment repository when not deploying to Maven Central |
124
+
|`ossrh` (deprecated) |`MAVEN_GPG_PRIVATE_KEY[_FILE]` and `MAVEN_GPG_PRIVATE_KEY_PASSPHRASE`| Yes | GPG private key or file that includes it. This is used to sign your Maven packages. See instructions below |
125
+
|`ossrh` (deprecated) |`MAVEN_STAGING_PROFILE_ID`| Yes | Central Publisher (sonatype) staging profile ID, corresponding to namespace (e.g. `com.sonatype.software`). |
126
+
|`ossrh` (deprecated) |`MAVEN_ENDPOINT`| No | URL of Nexus repository. Defaults to `https://central.sonatype.com`. |
0 commit comments