更新:我发布此消息后,存储库网址就开始工作了。但是,如果您知道如何解决这个问题,请告诉我,因为我可以再次看到这种情况。非常感谢你们。
maven的新手。
我正在使用RichFaces 4和Netbeans 7
当我打包应用程序时:
http://download.java.net/maven/2/org/richfaces/richfaces-bom/4.0.0-SNAPSHOT/maven-metadata.xml
该网址目前无法使用。因此,我无法运行我的应用程序,因为构建失败。
必须有一种解决方法,这可能很简单,但我的搜索没有任何结果。
以下是我pom.xml
<repository>
<id>java-net</id>
<name>Java.net Maven Repository</name>
<url>http://download.java.net/maven/2</url>
</repository>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Setting this property using archetype-metadata.xml requiredPorperty
so that generated project uses correct version of richfaces.
-->
<org.richfaces.bom.version>4.0.0-SNAPSHOT</org.richfaces.bom.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>richfaces-bom</artifactId>
<version>${org.richfaces.bom.version}</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-components-ui</artifactId>
</dependency>
<dependency>
<groupId>org.richfaces.core</groupId>
<artifactId>richfaces-core-impl</artifactId>
</dependency>
<dependencies>
我已尝试在我的设置中设置镜像,但它似乎不完整,因为它不适合我。这是我对镜子的尝试。
注意:我随机选择了镜子,这可能不是我想要的。只是试错,看看会发生什么。
<mirrors>
<mirror>
<id>RM</id>
<name>Java Net Mirror</name>
<url>http://repo1.maven.org/maven2</url>
<mirrorOf>java-net</mirrorOf>
</mirror>
提前感谢您提供的任何帮助。