mvn clean package报错


E:\jfinal\workspace\hellojfinal>dir

 驱动器 E 中的卷是 工作

 卷的序列号是 000E-4D12


 E:\jfinal\workspace\hellojfinal 的目录


2020/02/05  17:09    <DIR>          .

2020/02/05  17:09    <DIR>          ..

2020/02/05  17:09             1,306 .classpath

2020/02/05  17:09             1,220 .project

2020/02/05  17:09    <DIR>          .settings

2020/02/08  17:58             3,504 pom.xml

2020/02/05  17:09    <DIR>          src

2020/02/05  17:09    <DIR>          target

               3 个文件          6,030 字节

               5 个目录  1,020,940,288 可用字节


E:\jfinal\workspace\hellojfinal>mvn clean package

[INFO] Scanning for projects...

[INFO]

[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea

ded.SingleThreadedBuilder with a thread count of 1

[INFO]

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

[INFO] Building hellojfinal Maven Webapp 0.0.1-SNAPSHOT

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

Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-

compiler-plugin/3.6.1/maven-compiler-plugin-3.6.1.pom

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

[INFO] BUILD FAILURE

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

[INFO] Total time: 2.611 s

[INFO] Finished at: 2020-02-08T18:05:04+08:00

[INFO] Final Memory: 8M/77M

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

[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.6.1 or one of it

s dependencies could not be resolved: Failed to read artifact descriptor for org

.apache.maven.plugins:maven-compiler-plugin:jar:3.6.1: Could not transfer artifa

ct org.apache.maven.plugins:maven-compiler-plugin:pom:3.6.1 from/to central (htt

p://repo.maven.apache.org/maven2): Failed to transfer file: http://repo.maven.ap

ache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.6.1/maven-compi

ler-plugin-3.6.1.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Hel

p 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

E:\jfinal\workspace\hellojfinal>


评论区

JFinal

2020-02-08 18:40

可能是下载不稳,先将本地 maven 库中的相关目录删掉,让 maven 重新下载

另外,注意使用比较新的 maven 版本,还要注意配置好:
https://jfinal.com/doc/1-1

热门反馈

扫码入社