The result of the call to
Maven.resolver().resolve("<groupId>:<artifactId>:<version>").withoutTransitivity().asSingleFile();
e.g. myProjectGroupId:myProject:1.1
results sometimes in the correct jar file with the name "<artifactId>-<version>".jar e.g. myProject-1.1.jar, but sometimes I get a file "<artifactId>-unknownNumericalId.jar"
e.g. myProject-6244235517268120190.jar that doesn't exist in the maven repository. I couldn't find any hint under which circumstances I get the right file or I get the file with the unknown id.
Could someone help me here?