GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow to add a toolchain only - without updating settings.xml, JAVA_HOME and PATH. Only toolchains.xml must be extended. · Issue #552 · actions/setup-java

Allow to add a toolchain only - without updating settings.xml, JAVA_HOME and PATH. Only toolchains.xml must be extended. #552

New issue
Copy link
New issue
Copy link
Closed
Closed
Allow to add a toolchain only - without updating settings.xml, JAVA_HOME and PATH. Only toolchains.xml must be extended.#552
Copy link
Labels
feature requestNew feature or request to improve the current logicmavenMaven settings, toolchains, and publishing authneeds eyes

Description

@mhoffrog
mhoffrog
opened on Nov 6, 2023
Issue body actions

Description:
Allow to add another toolchain only by a subsequent setup-java - only toolchains.xml must be updated with the additional JDK setup and the JDK specific JAVA_HOME_<jdk version> must be set.
No update of settings.xml, no add to PATH, no update of JAVA_HOME.

Justification:
In my scenario I run a first setup-java configuring settings.xml and setting up my JAVA_HOME JDK.
Then I determine a probable additionally required toolchain version from the compile target setting of my Maven projects POM.
If this is requiring a different JDK, then I am running another setup-java for this toolchain.
In this case I want to get the toolchains.xml being extended only and to preserve JAVA_HOME, PATH and settings.xml from my first setup-java.
Currently I am working around this requirement by a step preserving JAVA_HOME, PATH and settings.xml before the setup-java step and restoring those after that step. This is working fine so far.
Another config property for setup-java like e.g. add-toolchain-only would save those efforts!

Are you willing to submit a PR?
Yes - cannot promise a timeline yet.

Reacted by Róbert Papp and Nikolas Grottendieck

Activity

  1. mhoffrog
    added
    feature requestNew feature or request to improve the current logic
    needs triage
    on Nov 6, 2023
  2. IvanZosimov
    added
    needs eyes
    and removed
    needs triage
    on Nov 7, 2023
  3. IvanZosimov commented on Nov 7, 2023

    @IvanZosimov
    IvanZosimov
    on Nov 7, 2023
    Contributor
    More actions

    Hi, @mhoffrog 👋 Thank you for the feature request, we will take a look and get back to your with our decision.

  4. IvanZosimov
    linked a pull request that will close this issueAdd a toolchain only - control update of settings.xml, toolchains.xml, JAVA_HOME and PATH more granular #553on Nov 8, 2023
  5. TWiStErRob commented on Feb 25, 2024

    @TWiStErRob
    TWiStErRob
    on Feb 25, 2024
    More actions

    I would like this too, use case similar to https://github.com/orgs/community/discussions/73309 and https://github.com/orgs/community/discussions/51280

    Pretty much anyone who provides a composite action that runs a jar or JDK commands is affected. I have no idea how others do it, probably delegate the labor to every user 😞.

    Reacted by Markus Hoffrogge
  6. mhoffrog commented on Feb 28, 2024

    @mhoffrog
    mhoffrog
    on Feb 28, 2024
    ContributorAuthor
    More actions

    @TWiStErRob I did file PR #553 already and did keep it up to date with recent master - s. #553 (comment).
    Unfortunately I do not get any further feedback nor answer on my comments on this PR - its a bit frustrating just getting no reaction for the time being.
    @IvanZosimov Maybe you are all pretty busy - would there be a person in the team to assign for review or to put attention to this item?

  7. caquino commented on Nov 20, 2025

    @caquino
    caquino
    on Nov 20, 2025
    More actions

    Hi, we are facing a similar issue: our self-hosted runners already have settings.xml pre-configured, as we use configurations much more complex than what actions/setup-java supports. However, when overwrite-settings: false, it also affects toolchains.xml management.
    Ideally, we should have a different setting like overwrite-toolchains: false as these configurations have different requirements and controls.

    Reacted by João Freitas
  8. mhoffrog commented on Nov 23, 2025

    @mhoffrog
    mhoffrog
    on Nov 23, 2025
    ContributorAuthor
    More actions

    @priya-kinthali Is there a reason why no one of the team is putting attention to PR #553 for over two years now?
    Is there a way to help on getting this merged?

    @caquino You could use GHCICD/setup-java@vHEAD-GHCICD-552 in the mean time if you want. I am keeping this in line with this action here as along as PR #553 is not being merged.

  9. v-priya-kinthali commented on Feb 9, 2026

    @v-priya-kinthali
    v-priya-kinthali
    on Feb 9, 2026
    Contributor
    More actions

    Hello @mhoffrog👋,
    Thank you for the feature request and for PR#553, and apologies for the delayed response. We’ll consider exploring the possibility of incorporating these changes in a future update as we gather more community engagement and interest.
    Thanks again for your input and patience!

  10. brunoborges
    added
    mavenMaven settings, toolchains, and publishing auth
    on Jun 22, 2026
  11. brunoborges commented on Jun 23, 2026

    @brunoborges
    brunoborges
    on Jun 23, 2026
    Contributor
    More actions

    Routing update: the toolchains-only capability requested here is now tracked in #1047, scoped to build on top of the set-default primitive added by PR #1017.

    PR #553 (which referenced this issue) has been closed in favor of that split: #1017 covers the JAVA_HOME/PATH (don't-make-default) behavior, and #1047 covers the remaining toolchains.xml-only install mode described here. Follow #1047 for progress on this specific need.

  12. brunoborges
    closed this as completedon Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew feature or request to improve the current logicmavenMaven settings, toolchains, and publishing authneeds eyes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.