繁体   English   中英

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

[英]Add option to Maven command line in Netbeans

我正在处理这个问题。 我有一个maven项目,女巫工作正常,直到我尝试添加一些junit依赖项,因此可以检测到此依赖项,但是没有下载,因此我不得不手动下载并安装。 直到这里,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。 你知道哪里吗?

最好的祝福!

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

在此处输入图片说明

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM