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
Fail when Maven toolchain ID count does not match Java versions #1156
Description:
When multiple Java versions are configured and the number of mvn-toolchain-id entries differs from the number of java-version entries, the action silently discards every supplied custom ID and generates defaults. This hides workflow configuration mistakes and can select an unexpected Maven toolchain.
Validate the relationship before installing any JDK. If mvn-toolchain-id is supplied, require exactly one ID per configured Java version and report both counts in the error. Add unit tests for matching, missing, and extra IDs, including single-version and java-version-file usage.
Task version:
v6
Platform:
Ubuntu
macOS
Windows
Runner type:
Hosted
Self-hosted
Repro steps:
Configure two Java versions but only one custom toolchain ID:
Activity