Error using Mandrel following getting started guide.
See original GitHub issueDescribe the bug
New to Quarkus. Followed the getting started guide on quarkus.io. Then started on the deploy native side.
When I ran mvnw package -Pnative
I got an error Invalid version string '21.0.0.0.Final'
Expected behavior packaging completes
Actual behavior Error
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] Running Quarkus native-image plugin on GraalVM Version 21.0.0.0.Final (Mandrel Distribution) (Java Version 11.0.10+9)
[INFO] [io.quarkus.deployment.pkg.steps.NativeImageBuildStep] -J-Djava.util.logging.manager=org.jboss.logmanager.LogManager -J-Dsun.nio.ch.maxUpdateArraySize=100 -J-Dvertx.logger-delegate-factory-class-name=io.quarkus.vertx.core.runtime.VertxLogDelegateFactory -J-Dvertx.disableDnsResolver=true -J-Dio.netty.leakDetection.level=DISABLED -J-Dio.netty.allocator.maxOrder=1 -J-Duser.language=en -J-Duser.country=US -J-Dfile.encoding=UTF-8 --initialize-at-build-time= -H:InitialCollectionPolicy=com.oracle.svm.core.genscavenge.CollectionPolicy\$BySpaceAndTime -H:+JNI -H:+AllowFoldMethods -jar getting-started-1.0.0-SNAPSHOT-runner.jar -H:FallbackThreshold=0 -H:+ReportExceptionStackTraces -H:-AddAllCharsets -H:EnableURLProtocols=http -H:NativeLinkerOption=-no-pie -H:-UseServiceLoaderFeature -H:+StackTrace getting-started-1.0.0-SNAPSHOT-runner
[getting-started-1.0.0-SNAPSHOT-runner:222852] classlist: 3,708.30 ms, 0.96 GB
[getting-started-1.0.0-SNAPSHOT-runner:222852] setup: 1,192.86 ms, 0.96 GB
Fatal error:java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: Invalid version string '21.0.0.0.Final'.
To Reproduce
Link to a small reproducer (preferably a Maven project if the issue is not Gradle-specific).
Or attach an archive containing the reproducer to the issue.
Steps to reproduce the behavior:
- Follow the getting started guide
- Install Mandrel on Fedora with sdkman
Mandrel | >>> | 21.0.0.0 | mandrel | installed | 21.0.0.0-mandrel
- Package with Mandrel
Configuration
# Add your application.properties here, if applicable.
Screenshots (If applicable, add screenshots to help explain your problem.)
Environment (please complete the following information):
- Output of
uname -a
orver
:Linux localhost.localdomain 5.9.16-100.fc32.x86_64 #1 SMP Mon Dec 21 14:10:00 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- Output of
java -version
: -
- GraalVM version (if different from Java): 21.0.0.0-mandrel
- Quarkus version or git rev:
- Build tool (ie. output of `mvnw --version` or `gradlew --version`):
Maven home: /home/josh/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3 Java version: 11.0.10, vendor: Oracle Corporation, runtime: /home/josh/.sdkman/candidates/java/21.0.0.0-mandrel Default locale: en_US, platform encoding: UTF-8 OS name: “linux”, version: “5.9.16-100.fc32.x86_64”, arch: “amd64”, family: “unix”
**Additional context**
(Add any other context about the problem here.)
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (2 by maintainers)
Also you need to
sdk flush archives
first to remove binaries that were already downloadedThe updated version in sdkman did indeed fix it. Thanks for the help. Closing this.