Home > Enterprise >  GraalVM "Invalid GAV coordinates" error? (Spring boot 3)
GraalVM "Invalid GAV coordinates" error? (Spring boot 3)

Time:12-05

Recently I downloaded Spring Boot 3 to test the embedded GraalVM. I run the `./gradlew native compile command the result is:

$ ./gradlew nativeCompile

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':nativeCompile'.
> Invalid GAV coordinates: groovy:it_groovy_comparre: (expected format: groupId:artifactId: version)

....

BUILD FAILED in 752ms

What is my problem with dependencies? When I run that command in debug mode there is nothing new except this error.

NOTE:

  • my $JAVA_HOME variable value is: /home/<my username>/.jdks/graalvm-ce-java17-22.3.0/, which point to a Graalvm java
  • my build automation tool is Gradle.
  • When I tested the command in groovy the result was the same

CodePudding user response:

I found the solution. Just before executing the command ./gradlew nativeCompile, I ran the following two commands :

$ ./gradlew processAot
...

$ ./gradlew processTestAot 
... 

After that, everything works fine.

CodePudding user response:

The "Invalid GAV coordinates" error in GraalVM typically indicates that the provided coordinates for a Maven artifact are incorrect or incomplete. The coordinates for a Maven artifact consist of a group ID, artifact ID, and version number, and are typically specified in the form groupId:artifactId:version.

For example, if you were trying to use the org.openjdk.jmh:jmh-core artifact, the coordinates would be org.openjdk.jmh:jmh-core:1.23.

If you are seeing the "Invalid GAV coordinates" error, it is likely that the coordinates you are using are incorrect or incomplete. To fix this error, you can check the coordinates for the artifact you are trying to use, and make sure they are correct and complete.

For example, if you were trying to use the jmh-core artifact and you provided the coordinates org.openjdk.jmh:jmh-core, you would see the "Invalid GAV coordinates" error because you are missing the version number in the coordinates. To fix this error, you would need to provide the full coordinates for the artifact, including the version number, such as org.openjdk.jmh:jmh-core:1.23.

In general, the "Invalid GAV coordinates" error in GraalVM indicates that there is a problem with the coordinates provided for a Maven artifact, and you will need to check and correct the coordinates to fix the error.

  • Related