Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to overcome "No repositories found" error in IntelliJ

I'm getting "No repository found" errors in IntelliJ not only for our own repository, but even for the majority of the repositories listed by default under Maven configuration. Only jfrog.org and jboss.org are reported OK with artifacts.

The rest of the repositories are online and contain artifacts if accessed with a browser or with Maven from command line.

There's a bug report on JetBrains site: http://youtrack.jetbrains.com/issue/IDEA-122332, submitted three months ago.

Is there a workaround?

enter image description here

enter image description here

like image 559
kukido Avatar asked Jun 29 '14 07:06

kukido


People also ask

What is repository in IntelliJ?

Settings Repository Use this page to configure the Settings Repository feature that allows you to share your IDE settings between different instances of IntelliJ IDEA (or other IntelliJ platform-based) products installed on different computers.

How do I download Maven repository from IntelliJ?

Download a library from MavenFrom the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Libraries. and select From Maven. You can also specify another library location, and select whether you want to download transitive dependencies, source files, Javadoc files, or annotations.


1 Answers

If the server is Artifactory, you need to add /api/ to the end of the URL.

Using the example of the standard JFrog one: the URL set in IntelliJ is http://repo.jfrog.org/artifactory/api/. IntelliJ will discover the repositories with a GET request to that URL with /repositories appended (http://repo.jfrog.org/artifactory/api/repositories). This should return a JSON array describing the repositories on the server.

I've never used non-Artifactory servers, so I don't know about those.

like image 57
Lachlan Avatar answered Sep 19 '22 19:09

Lachlan