[英]Primefaces Maven repository not working
I add repository to my pom.xml exactly like tihs: 我将存储库添加到我的pom.xml中,就像tihs一样:
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
</repositories>
Then, I start to write: 然后,我开始写:
<dependency>
<groupId>org.prime</groupId>
</dependency>
But in the groupID, only org.primefaces.extensions are available ! 但是在groupID中,只有org.primefaces.extensions可用! Not just org.primefaces.
不只是org.primefaces。 Intellij IDEA shows this.
Intellij IDEA展示了这一点。
When I add this repo to nexus below, it says no repository was found on that URL. 当我将此repo添加到下面的nexus时,它表示该URL上没有找到任何存储库。 I am using latest Maven 3.1.0 downloaded today.
我正在使用今天下载的最新Maven 3.1.0。
The groupID you are using is wrong. 您使用的groupID是错误的。
Edit POM file manually and add following. 手动编辑POM文件并添加以下内容。
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>3.5</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.