开发者

Maven Artifact Search is always empty

When using Alt-Insert to insert a dependency into the POM, the Artifact Search is always completely blank regardless of what I search for.

I tried to add re开发者_如何学Pythonpo1 to Settings->Maven->Repository Services, it says "no repository found." I find that hard to believe.

I've also tried to "update" my local repository but that results in an error.

FYI I'm using Community Edition Snapshot.

Thanks!


If you have a brand new IntelliJ install and have never updated your Maven Repository, notice that there is a little "Update" button to the right that becomes clickable when you click on each repository.

Preferences > Build, Execution, Deployment > Build Tools > Maven > Repositories

The important one is the https://repo.maven.apache.org/maven2/ remote repository, make sure you update it.


I used Artifactory to generate a settings.xml for me, and by default it pointed me to the "libs-releases" repository.

Instead want my "releases" repository to point to the much larger virtual repository "remote-repos."

All it took was a simple change to the options of the "Generate Settings" function.

Maven Artifact Search is always empty


Weird. The Artifact Search is working fine for me with IntelliJ Community Edition, at least for artifacts from the central repo that has been indexed:

Maven Artifact Search is always empty

And as you can see above, all repositories declared in POMs known by IntelliJ are listed.

There might be something wrong with your Maven settings. This is a wild guess but is your Maven home directory properly defined? Same for the user settings file? Is Maven actually working fine under IntelliJ?


Solved - by reinstalling Intellij Idea

Search for class tab in Maven Artifact Search popup was always empty

Solution in linux:

  1. remove idea folder (for me it was ~/idea-YOUR_VERSION_HERE)
  2. remove ~/.IntelliJIdeaYOUR_VERSION_HERE folder (settings)
  3. download new version form jetbrains.com, unzip, run installer from bin


It appears to be a blocked port, as I am using my own artifactory repository. Of course, the port it is using looks to be completely undocumented, but WireShark shows it to be 58754. Sounds random, I hope it isn't!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜