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
{{ message }}
Repository navigation
Commit b843ebf
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+17-6Lines changed: 17 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,8 +170,9 @@ steps:
170
170
| `mvn-server-credentials` | Multiline Maven server credentials in the format `server-id:USERNAME_ENV:PASSWORD_ENV`. Replaces the single server configured by the three inputs above when set. | |
171
171
| `mvn-server-repository-origins` | Multiline Maven credential origins in the format `server-id:repository-origin`. Each origin must belong to a configured server ID. Requires Maven 3.10+. | |
172
172
| `mvn-repositories` | Multiline Maven dependency repositories in the format `repository-id:repository-url:snapshots-enabled`. | |
173
-
| `mvn-repositories-include-central` | Include Maven Central in the generated dependency repositories profile. When `false`, Central is disabled unless an explicit `central` repository is declared. | `true` |
174
-
| `mvn-repositories-prioritize-central` | Place Maven Central before custom dependency repositories. Has no effect when Maven Central is excluded. | `true` |
173
+
| `mvn-plugin-repositories` | Multiline Maven plugin repositories in the format `repository-id:repository-url:snapshots-enabled`. Can be used independently of `mvn-repositories`. | |
174
+
| `mvn-repositories-include-central` | Include Maven Central for dependency and plugin repositories in the generated profile. When `false`, Central is disabled for both types unless that type explicitly declares `central`. Has no effect when neither repository list is configured. | `true` |
175
+
| `mvn-repositories-prioritize-central` | Place Maven Central before custom dependency and plugin repositories. Has no effect when Central is excluded or neither repository list is configured. | `true` |
175
176
| `settings-path` | Directory where `settings.xml` is written. | `~/.m2` |
176
177
| `overwrite-settings` | Overwrite an existing `settings.xml`. | `true` |
177
178
| `gpg-private-key` | GPG private key to import into an isolated temporary keyring. | |
@@ -482,10 +483,20 @@ steps:
482
483
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
483
484
```
484
485
485
-
For dependencies hosted outside Maven Central, use `mvn-repositories` to add
486
-
resolution repositories to an active profile in the generated `settings.xml`.
487
-
Repository IDs can match `mvn-server-credentials` IDs when authentication is
488
-
required. See [Resolving Maven dependencies from custom repositories](docs/advanced-usage.md#resolving-maven-dependencies-from-custom-repositories).
486
+
For dependencies hosted outside Maven Central, use `mvn-repositories`; for build
487
+
plugins, use `mvn-plugin-repositories`. Either input adds its own repository type
488
+
to the same active profile in the generated `settings.xml`. Repository IDs can
489
+
match `mvn-server-credentials` IDs when authentication is required.
490
+
See [Resolving Maven dependencies from custom repositories](docs/advanced-usage.md#resolving-maven-dependencies-from-custom-repositories)
491
+
and [Resolving Maven plugins from custom repositories](docs/advanced-usage.md#resolving-maven-plugins-from-custom-repositories).
492
+
493
+
> [!WARNING]
494
+
> `mvn-repositories-include-central: false` now disables inherited Maven Central
495
+
> for **both dependencies and plugins**, even in existing workflows that only
496
+
> configure `mvn-repositories`. Builds relying on uncached plugins from Central
497
+
> must configure `mvn-plugin-repositories` with an accessible plugin repository
498
+
> or explicitly declare `central` there. Neither repository list configured
0 commit comments