栏目分类:
子分类:
返回
终身学习网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
终身学习网 > IT > 软件开发 > 后端开发 > Java

maven打jar包时使用<compilerArguments>标签遇到的报错问题

Java 更新时间:发布时间: 百科书网 趣学号
问题

单独使用 bootclasspath 标签时


   ${java.home}/lib

问题说明:
在maven打jar包时,先clean再install时报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project rs-datacenter-server: Compilation failure
[ERROR] An unknown compilation problem occurred
[ERROR] 
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :rs-datacenter-server

单独使用 extdirs 标签时


   ${java.home}/lib

问题说明:
在maven打jar包时,先clean再install时报错

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project rs-datacenter-server: Compilation failure: Compilation failure: 
[ERROR] /E:/JAVAIDEA/dev/server/src/main/java/com/rs/utils/gdal/ImageOperate.java:[3,32] �����com.sun.image.codec.jpeg������
[ERROR] /E:/JAVAIDEA/dev/server/src/main/java/com/rs/utils/gdal/ImageOperate.java:[3,32] �����com.sun.image.codec.jpeg������
[ERROR] /E:/JAVAIDEA/dev/server/src/main/java/com/rs/utils/gdal/ImageOperate.java:[3,32] �����com.sun.image.codec.jpeg������
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :rs-datacenter-server
解决方案:

同时使用 bootclasspath 和 extdirs 标签


   ${java.home}/lib
   ${java.home}/lib

在maven打jar包时,先clean再install后操作成功

转载请注明:文章转载自 www.051e.com
本文地址:http://www.051e.com/it/276233.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 ©2023-2025 051e.com

ICP备案号:京ICP备12030808号