在Netbeans中为Maven命令行添加选项

时间:2016-10-16 23:58:19

标签: java maven netbeans

我正在处理这个问题。我有一个maven项目女巫工作正常,直到我尝试添加一些junit依赖,所以这个dependecies被检测但不下载,所以我不得不手动下载和安装。直到这里netbeans看起来很好,但是当我运行时我得到这个错误:

Failed to execute goal on project project: Could not resolve dependencies for project ar.com.project:project:jar:1.0-SNAPSHOT: Failed to collect dependencies for [org.springframework:spring-web:jar:3.2.2.RELEASE (compile), com.google.code.gson:gson:jar:1.2.2 (compile), junit:junit:jar:4.11-redhat-1 (test)]: Failed to read artifact descriptor for org.hamcrest:hamcrest-core:jar:1.3-redhat-1: Failure to find org.hamcrest:hamcrest-parent:pom:1.3-redhat-1 in http://maven.repository.redhat.com/techpreview/all was cached in the local repository, resolution will not be reattempted until the update interval of jboss-ga-repository has elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

如果你去https://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException并阅读评论,它看起来肠道有同样的问题我的解决方案是添加-U选项,但我找不到:s。你知道吗?

祝你好运!

1 个答案:

答案 0 :(得分:0)

我找到了如何添加选项,查看图片,但我的问题仍然存在:(所以这不是问题所在。

enter image description here