本文介绍了Maven软件包在本地发布?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我运行mvn软件包,并收到以下错误消息:

I run mvn package and I get this error message:

[ERROR] Failed to execute goal on project gs-maven: Could not resolve dependencies for project DD2480-Group-15:gs-maven:jar:0.1.0: Failure to find com.fasterxml.jackson.core:jackson-databind:jar:3.6 in http://download.java.net/maven/2 was cached in the local repository, resolution will not be reattempted until the update interval of java.net2 has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

下面是我的pom.xml文件:

And below is my pom.xml file:

 <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-core</artifactId>
    <version>2.5.0</version>
</dependency>
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.5.0</version>
</dependency>
<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-annotations</artifactId>
    <version>2.5.0</version>
</dependency>

它与Github上的Travis一起使用,但是在本地不起作用?

It was working with Travis on Github, but it doesn't work locally?

推荐答案

尝试使用:

mvn clean package -U

此键的表单描述:

Forces a check for missing releases and updated snapshots on remote repositories

这篇关于Maven软件包在本地发布?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 19:01