Coder Social home page Coder Social logo

Comments (3)

quarkus-bot avatar quarkus-bot commented on June 19, 2024

/cc @quarkusio/devtools (maven)

from quarkus.

paulrobinson avatar paulrobinson commented on June 19, 2024

It also fails in the same way when specifying 3.10.1 as the quarkus version, using this command:

mvn "io.quarkus.platform:quarkus-maven-plugin:3.10.1:create" -DprojectGroupId="com.redhat.developers" -DprojectArtifactId="tutorial-app" -DprojectVersion="1.0-SNAPSHOT" -Dextensions=rest

from quarkus.

paulrobinson avatar paulrobinson commented on June 19, 2024

This was caused by mvn picking up Java 11, despite me having Java 21 as the default on the path.

See:

# java --version
openjdk version "21.0.3" 2024-04-16 OpenJDK Runtime Environment Homebrew (build 21.0.3) OpenJDK 64-Bit Server VM Homebrew (build 21.0.3, mixed mode, sharing)

# mvn --version
Maven home: /Users/paul/.sdkman/candidates/maven/current
Java version: 11.0.7, vendor: AdoptOpenJDK, runtime: /Users/paul/.sdkman/candidates/java/11.0.7.hs-adpt
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

The fix was to install Java again via SDKMAN (using the following command) and accept the option to make '21.0.3-tem' the default version when asked.

sdk install java

I guess I had installed Java 11 with SDKMAN, then Java 21 with Brew. So I got my env into a bit of a mess.

This seems to be the same issue as: #39358

from quarkus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.