#1099882 maven: Broken symlink /usr/share/maven/lib/plexus-xml.jar

#1099882#5
Date:
2025-03-09 10:20:23 UTC
From:
To:
Dear Maintainer,

The symlink /usr/share/maven/lib/plexus-xml.jar which you added in this version of Maven
is broken on my system, presumably because libplexus-xml-java is not installed on my system.
Is this expected? I have the same issue for maven-resolver-transport-http.jar.
I believe adding libplexus-xml-java and libmaven-resolver-transport-http-java as dependencies to
this package would solve this problem.

The fact that those symlinks are broken manifests itself when I try to launch a Java program
via Eclipse (using the mvn exec:java goal), which fails with:
java.io.FileNotFoundException: /usr/share/maven/lib/plexus-xml.jar
	at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:271)
	at org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:131)
	at org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:128)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:401)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:348)


I intend to submit a PR on Salsa to fix this.

Have a great day,
Antonin