book-example icon indicating copy to clipboard operation
book-example copied to clipboard

version of tools suggested in book are not working

Open alansenairj opened this issue 1 year ago • 1 comments

Can you help me to review requirements for today' s use?

Because with most recent quarkus version your code is not compiling using:

maven 3.8.3 - 6 - latest java 11 - 17 latest quarkus

I am trying to compile it using combinations of maven and java versions and it is not compiling

alansenairj avatar Aug 13 '24 11:08 alansenairj

Hi Alan,

you're right, if you're going to use latest Quarkus version, you have to update the necessary tools in order to follow the examples:

  • Java 11 is not supported any longer. You have to use at least Java 17++ (have a look at the generated pom.xml what 'maven.compiler.release' was chosen and change it accordingly)
  • You need at least Maven 3.9.8

Have a look at the following guide.

But you can also force Quarkus CLI to generate sources for the version of Quarkus I've described in the book by executing:

$ quarkus create app org.wanja.demo:demo-service:0.0.1 --stream=2.16

Hope that helps!

wpernath avatar Aug 20 '24 09:08 wpernath