Maven 3.8 update is broken
Issue
- After updating to maven 3.8
mvn
does not work.
# yum module reset maven
# yum module install maven:3.8
$ mvn clean
...
constituent[47]: file:/usr/share/maven/lib/plexus-sec-dispatcher-2.0.jar
constituent[48]: file:/usr/share/maven/lib/wagon-provider-api-3.5.1.jar
---------------------------------------------------
Exception in thread "main" java.lang.NoSuchMethodError: 'org.eclipse.aether.util.repository.DefaultMirrorSelector org.eclipse.aether.util.repository.DefaultMirrorSelector.add(java.lang.String, java.lang.String, java.lang.String, boolean, boolean, java.lang.String, java.lang.String)'
at org.apache.maven.internal.aether.DefaultRepositorySystemSessionFactory.newRepositorySession(DefaultRepositorySystemSessionFactory.java:182)
at org.apache.maven.DefaultMaven.newRepositorySession(DefaultMaven.java:367)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:185)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:960)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:293)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:196)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
Environment
- Maven module 3.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.