Primefaces dependency not able to import as the REPO url is blocked

好久不见. 提交于 2020-01-24 09:52:10

问题


I am working on a maven based Spring project.I have added following dependency for Primefaces.

<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>2.2</version>

And following Repository,I am using

<repository>
<id>prime-repo</id>
<name>Prime Technology Maven Repository</name>
<url>http://repository.prime.com.tr</url>
<layout>default</layout>

But the problem is that the url http://repository.prime.com.tr is blocked in our network, so I manually copied jar file of primefaces at .m2 repo location.

Now the problem is , it is not picking the Primefaces dependency mentioned in POM.xml.It is not even showing it in Java Build Path inside STS.

Can somebody please advise.


回答1:


Manually copying the file into the .m2/repository might not be sufficient. You can try to install it manually in your repository:

mvn install:install-file -Dfile=path/to/local/primefaces.jar
                         -DgroupId=org.primefaces
                         -DartifactId=primefaces
                         -Dversion=2.2
                         -Dpackaging=jar


来源:https://stackoverflow.com/questions/6779997/primefaces-dependency-not-able-to-import-as-the-repo-url-is-blocked

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