为了账号安全,请及时绑定邮箱和手机立即绑定

mvn clean compile 配置失败?

D:\搜狗高速下载\Ecilpse8.5 64\code\maven01>mvn clean compile

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for

com.imooc.maven01:maven01-model:jar:0.0.1SNAPSHOT

[WARNING] 'version' uses an unsupported snapshot version format, should be '*-SN

APSHOT' instead. @ line 11, column 11

[WARNING]

[WARNING] It is highly recommended to fix these problems because they threaten t

he stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support buildin

g such malformed projects.

[WARNING]

[INFO]

[INFO] ------------------< com.imooc.maven01:maven01-model >-------------------

[INFO] Building maven01-model 0.0.1SNAPSHOT

[INFO] --------------------------------[ jar ]---------------------------------

Downloading from maven.net.cn: http://maven.net.cn/content/groups/public/org/apa

che/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2.112 s

[INFO] Finished at: 2018-07-11T15:06:06+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dep

endencies could not be resolved: Failed to read artifact descriptor for org.apac

he.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apa

che.maven.plugins:maven-clean-plugin:pom:2.5 from/to maven.net.cn (http://maven.

net.cn/content/groups/public): Connect to maven.net.cn:80 [maven.net.cn/114.215.

201.67] failed: Connection refused: connect -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

ch.

[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 rea

d the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti

onException


D:\搜狗高速下载\Ecilpse8.5 64\code\maven01>mvn clean compile

[INFO] Scanning for projects...

[WARNING]

[WARNING] Some problems were encountered while building the effective model for

com.imooc.maven01:maven01-model:jar:0.0.1SNAPSHOT

[WARNING] 'version' uses an unsupported snapshot version format, should be '*-SN

APSHOT' instead. @ line 11, column 11

[WARNING]

[WARNING] It is highly recommended to fix these problems because they threaten t

he stability of your build.

[WARNING]

[WARNING] For this reason, future Maven versions might no longer support buildin

g such malformed projects.

[WARNING]

[INFO]

[INFO] ------------------< com.imooc.maven01:maven01-model >-------------------

[INFO] Building maven01-model 0.0.1SNAPSHOT

[INFO] --------------------------------[ jar ]---------------------------------

Downloading from maven.net.cn: http://maven.net.cn/content/groups/public/org/apa

che/maven/plugins/maven-clean-plugin/2.5/maven-clean-plugin-2.5.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 2.152 s

[INFO] Finished at: 2018-07-11T15:09:14+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dep

endencies could not be resolved: Failed to read artifact descriptor for org.apac

he.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apa

che.maven.plugins:maven-clean-plugin:pom:2.5 from/to maven.net.cn (http://maven.

net.cn/content/groups/public): Connect to maven.net.cn:80 [maven.net.cn/114.215.

201.67] failed: Connection refused: connect -> [Help 1]

[ERROR]

[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

ch.

[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 rea

d the following articles:

[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResoluti

onException


正在回答

1 回答

不要放在中文路径下,还有就是路径中不要出现空格。。比如你这里的Ecilpse8.5 64 。 再试试。

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173090    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

mvn clean compile 配置失败?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信