Dependency not found in pom.xml in recent

已回答

I am getting the "Dependency not found" error in my Maven project. Similar issues on IntelliJ were fixed by updating to a recent version and compiling/refreshing Maven, but the problem still happens for me. However, Maven has no problem with building or packaging the project. This is my IntelliJ build:

0

IDE reports such error when it cannot find the dependency in a local repository, specified in Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Local repository. Do you have this dependency on your machine in the local repository (usually it is `.m2/repository` directory in user home, followed by the dependency path like `com/github/aikaterna`)?

If the dependency is present, try restarting the IDE and invoke Reload action in Maven tool window.

0

Yes, com/github/aikaterna and the dependency are in the "~/.m2/repository" directory. I have tried restarting the IDE, reloading, and invalidating caches multiple times, and it still isn't working. 

0

>Yes, com/github/aikaterna and the dependency are in the "~/.m2/repository" directory.

What is the full path to a dependency? Does case of the dependency version match? Can you provide a sample project (can be uploaded at https://uploads.jetbrains.com)? Please also include IDE logs (Help | Collect Logs and Diagnostic Data action).

Try also updating the local repository in Settings (Preferences on macOS) | Build, Execution, Deployment | Build Tools | Maven | Repositories | Build, Execution, Deployment | Build Tools | Maven | Repositories.

0

The full path is "~/.m2/repository/com/github/aikaterna/lavaplayer-natives/original-SNAPSHOT". The dependency version does match, and I have tried updating the local repository already. Here's the Upload ID of a sample project I used to reproduce the error: Upload id: 2022_07_12_2Bi6NXdr97A8ew52js6K7t (file: dependency.zip)

0

I forgot to upload the logs, the upload id for the logs is: 2022_07_12_bAyDwuuBefUob8SKSk6fdw (file: idea-logs-20220712-1047092380773317680654871.zip)

 
0

Thank you for the sample project. Reproduced the issue. Please vote for this request in our tracker: https://youtrack.jetbrains.com/issue/IDEA-297850

0

请先登录再写评论。