Idea编译打包过程发生错误
Idea打包遇到如下问题
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project HDF SConnection: Execution default-compile of goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile failed: Plugin o rg.apache.maven.plugins:maven-compiler-plugin:3.7.0 or one of its dependencies could not be resolved: Could not transfer art ifact org.ow2.asm:asm:jar:6.0_BETA from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public/): Failed to transf er file: http://maven.aliyun.com/nexus/content/groups/public/org/ow2/asm/asm/6.0_BETA/asm-6.0_BETA.jar. Return code is: 500 , ReasonPhrase:Internal Server Error. -> [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/PluginResolutionException
问题显示遇到
maven编译器插件错误。
解决方法:
1.首先看看自己的jdk版本是否和配置的一致,网上有很多该问题的解决方法,不多解释。
2.如果还不好,就需要删除本地maven库文件重新下载
具体步骤如下:
2.1根据该目录找到编译器本地地址
2.2删去发生错误的编译器相应版本的文件包(我的是3.7.0)因为发生错误一定是下载不完整导致的,所以我们只需要重新下载就行了
2.3重新执行maven 的pom文件,这时候maven会重新下载该版本的编译器
2.4编译打包
3.如果还是发生上面的错误。
你就直接换个编译器版本不就行了吗?我把这个插件换成了3.3版本,成功编译