lein doesn't fully reify org.apache.maven.wagon.Wagon
Initial debugging steps Before creating a report, especially around exceptions being thrown when running Leiningen, please check if the error still occurs after:
- [x] Updating to using the latest released version of Leiningen (
lein upgrade). - [x] Moving your
~/.lein/profiles.clj(if present) out of the way. This contains third-party dependencies and plugins that can cause problems inside Leiningen. - [x] Updating any old versions of plugins in your
project.clj, especially if the problem is with a plugin not working. Old versions of plugins like nREPL and CIDER (as well as others) can cause problems with newer versions of Leiningen. - [x] (If you are using Java 9 or newer), updating your dependencies to their most recent versions. Recent JDK's have introduced changes which can break some Clojure libraries.
Describe the bug
JDK 17.0.11, Clojure 1.11.3, lein 2.11.2
Execution error (AbstractMethodError) at org.eclipse.aether.transport.wagon.WagonTransporter/execute (WagonTransporter.java:433).
Receiver class leiningen.core.main$insecure_http_abort$reify__7516 does not define or inherit an implementation of the resolved method 'abstract void removeTransferListener(org.apache.maven.wagon.events.TransferListener)' of interface org.apache.maven.wagon.Wagon
To Reproduce Steps to reproduce the behavior:
- Run the command
lein test - See error
Expected behavior HTTP errors handled gracefully; implemented interfaces fully reified.
Environment
- Leiningen Version: [e.g. 2.11.2].
- Leiningen installation method: Homebrew.
- JDK Version: 17.0.11.
- OS: macOS 14.5.
- Maven: Apache Maven 3.9.7.
- A secured laptop with restricted access for downloading libraries from git repos, including maven central.
Looks like the API for this must have changed since we looked at it last; will take a look. The error message definitely used to look better. Thanks.
Turns out this warning got added to pomegranate, so there is no need to implement it in Leiningen any more. Fixed in 8d4bf1b.