Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure Maven toolchains in the Docker container #385

Open
olafurpg opened this issue Dec 28, 2021 · 0 comments
Open

Configure Maven toolchains in the Docker container #385

olafurpg opened this issue Dec 28, 2021 · 0 comments

Comments

@olafurpg
Copy link
Member

The docker container pre-installs Java 8/11/17 but the installations are not visible to Maven toolchains. We should update ~/.m2/toolchains.xml to point to the Java installations

❯ cat ~/.m2/toolchains.xml
<?xml version="1.0" encoding="UTF8"?>
<toolchains>
  <toolchain>
    <type>jdk</type>
    <provides>
      <version>17</version>
      <vendor>sun</vendor>
    </provides>
    <configuration>
       <jdkHome>/Users/olafurpg/Library/Caches/Coursier/jvm/[email protected]/Contents/Home</jdkHome>
    </configuration>
  </toolchain>
</toolchains>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants