I have the same problem as before.
If all dependencies are already downloaded and cached in the local .m2, the
build is fine (and fast enough ❤️).

But if the .m2 is empty, it fails:

> [INFO] Loaded 21364 auto-discovered prefixes for remote repository central
> (prefixes-central-de50eea0969103e41174affd2ddb63ab046833ca.txt)
> [INFO] Loaded 21364 auto-discovered prefixes for remote repository
> snapshots (prefixes-snapshots-af22c4e9ddcf7e1702b6375fe74ed20566212a38.txt)
> ...
> [ERROR] Caused by: The following artifacts could not be resolved:
> com.acme:maven-metrics-extension:jar:v0.0.5-alpha1 (absent): Prefix
> com/acme/maven-metrics-extension/v0.0.5-alpha1/maven-metrics-extension-v0.0.5-alpha1.jar
> NOT allowed from snapshots (
> https://registry.acme.com:443/registry/java-virtual, default,
> releases+snapshots)


These messages are formatted better now, but it does not give enough
clarity, what does it mean. What is the "prefix" (that seems to be a new
conception of Maven 4), what is the source it's loaded from (how it
auto-discovered 21364 prefixes)? Also there is a file mentioned
"prefixes-central-de50eea0969103e41174affd2ddb63ab046833ca.txt" - where is
it located? If it's a temporary file name, either the full path should be
printed, or this part with the file name only brings confusion.

Ideally, there should be a link to some manual page with troubleshooting
and explanation of what's going on. Sample link for the classified failure
(DefaultExceptionHandler prints it in the diagnostics):
https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound


On Sat, Nov 8, 2025 at 2:38 AM Guillaume Nodet <[email protected]> wrote:

> Hi all,
>
> DISCLAIMER:
> I accidentally published the distributions to the dist area instead of the
> dev area.
> If the vote is not successful, I'll ask infra to remove it...
>
> Draft release notes:
> https://gist.github.com/gnodet/8a837a04a11f0e1359475c9dc5e68000
>
> Staging repo:
> https://repository.apache.org/content/repositories/maven-2339/
>
> https://repository.apache.org/content/repositories/maven-2339/org/apache/maven/apache-maven/4.0.0-rc-5/apache-maven-4.0.0-rc-5-src.zip
>
> Distribution staging area:
> https://dist.apache.org/repos/dist/release/maven/maven-4/4.0.0-rc-5/
>
> Staging site:
> https://maven.apache.org/ref/4-LATEST/
>
> Please review and vote !
>
> --
> ------------------------
> Guillaume Nodet
>

Reply via email to