【问题标题】:Add option to Maven command line in Netbeans在 Netbeans 中向 Maven 命令行添加选项
【发布时间】:2016-10-16 23:58:19
【问题描述】:

我正在处理这个问题。我有一个 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。你知道在哪里吗?

最好的问候!

【问题讨论】:

    标签: java maven netbeans


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2011-08-25
      • 2011-04-10
      • 2013-05-08
      • 1970-01-01
      • 2016-06-19
      • 2011-10-12
      相关资源
      最近更新 更多