Free artifactory or nexus service url without password, for using in intellij idea

旧时模样 提交于 2019-12-13 02:07:39

问题


Intelliji Idea shiped with 3 free online repository in settings -> maven -> artifactory or nexus service url http://oss.sonatype.org/service/local/ http://repo.jfrog.org/artifactory/api/ https://repository.jboss.org/nexus/service/local/

all this repos are unavialable (404 error or password protected).

Can you give more free artifactory or nexus service url without password protect? IDEA has no settings for password on repo URL.


回答1:


IDEA uses the REST services to get listings of all the repositories available on each host. All three work for me on my machine which is on a network without an HTTP proxy. Is it possible you are on a network with a proxy?




回答2:


The service URLs are used for attaching remote libraries to a module by running class search queries using the REST APIs available at those URLs and downloading the found librarie from the remote Artifactory.

The REST URLs aren't meant to be directly browsable.

Maybe this explains it better: http://blogs.jetbrains.com/idea/2010/08/getting-external-libraries-easily/




回答3:


Those urls appear to be pointed at the REST resources of each system, they aren't repositories, not sure what the intellij guys were attempting to do.

If you need a repo to host your own stuff in for free, see here: http://nexus.sonatype.org/oss-repository-hosting.html

If you are trying to access the repositories on Nexus, then you can find them by browsing http://oss.sonatype.org or https://repository.jboss.org/nexus/




回答4:


Sonatype's service URL now only supports https, so if you're not finding expected artifacts, try updating your Intellij Idea Maven > Repositories setting to https://oss.sonatype.org/service/local/



来源:https://stackoverflow.com/questions/4921846/free-artifactory-or-nexus-service-url-without-password-for-using-in-intellij-id

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!