dengfengpo 发表于 2018-10-29 16:49:23

maven clean报错

我的电脑原来是32位系统。最近重装了64位系统。
重装之后重新导入原来的项目,maven一直报错。
------------------------------------------------------------------------
Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version ->

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:
http://cwiki.apache.org/confluen ... ResolutionException

我的jeecg项目版本是3.7.7的。在重装系统之前都可以正常运行。。。重装以后重新安装了maven、eclipse等工具,现在还没能成功启动服务。麻烦帮忙看看是什么原因;我已经试过重新下载整个maven仓库,还是一样报错。不知道到底是哪方面的原因。

fly1206 发表于 2018-10-29 16:52:38

mavensettings文件加下阿里云镜像配置再试试

dengfengpo 发表于 2018-10-29 20:46:26

本帖最后由 dengfengpo 于 2018-10-29 20:54 编辑

fly1206 发表于 2018-10-29 16:52 static/image/common/back.gif
mavensettings文件加下阿里云镜像配置再试试
clean没问题了;现在在maven install的时候,我自己加的功能代码部分报错,需要管吗
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project jeecg: Compilation failure: Compilation failure:
\workspace\jeecg\src\main\java\lw\controller\LwsyunitController.java: 错误: 找不到符号
\workspace\jeecg\src\main\java\lw\controller\LwsyunitController.java: 错误: 找不到符号
\workspace\jeecg\src\main\java\lw\controller\LwsyunitController.java: 错误: 找不到符号
\workspace\jeecg\src\main\java\lw\controller\LwsyunitController.java: 错误: 找不到符号
->

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:
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
页: [1]
查看完整版本: maven clean报错