Maven search fails for a project in the Central repository.
Answered
Hi,
I'm using IntelliJ's Maven plugin to import a particular library, jPlag (https://mvnrepository.com/artifact/de.jplag). No keyword that I can think of can find it (de.jplag, jplag, etc.) Usually, the searches work fine with other library imports (slf4j, the Princeton StdLib, etc.).
I've verified that "https://repo1.maven.org/maven2" is listed as a Jar Repository in the "Remote Jar Repositories" section of Settings. I've also verified that the project exists in the Central repository (https://repo1.maven.org/maven2/de/jplag/jplag/4.2.0/).
Does anyone have an idea of what I might be doing wrong and what I should be doing differently?
thanks!
James
Please sign in to leave a comment.
Hello,
Am I got you right that you are trying to add library in "Project Structure | Libraries - Add - From Maven"?
Hi Yaroslav,
Yes, File -> Project Structure -> Libraries -> add -> From Maven
It usually works smoothly and easily (like so much of IntelliJ... a real pleasure to work with)
Thanks!
James
It looks like https://youtrack.jetbrains.com/issue/IDEA-143434/Add-library-from-Maven-does-not-see-recent-artifacts-from-Maven-Central
Hi Yaroslav,
Okay. So as per that post it seems that this might be a long-standing issue and that the Maven search may be using an older index. Is there a suggestion to work around this?
thanks!
James
James,
Unfortunately, no. We'll check if it's possible to rework it in 2023 release cycle.