本地开发环境,打包报错,问题如下图:
[INFO] crmeb .............................................. SUCCESS [ 0.003 s]
[INFO] crmeb-common ....................................... SUCCESS [01:08 min]
[INFO] crmeb-service ...................................... SUCCESS [ 24.933 s]
[INFO] crmeb-admin ........................................ FAILURE [ 0.371 s]
[INFO] crmeb-front ........................................ SKIPPED
[INFO] crmeb-generate ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:34 min
[INFO] Finished at: 2024-09-12T11:50:54+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.3.1:resources (default-resources) on project crmeb-admin: filtering /Users/mxli/workspace-mall/mer_java/crmeb-admin/src/main/resources/libs/CRMEB-encrypt-1.0-SNAPSHOT-encrypted.jar to /Users/mxli/workspace-mall/mer_java/crmeb-admin/target/classes/libs/CRMEB-encrypt-1.0-SNAPSHOT-encrypted.jar failed with MalformedInputException: Input length = 1 -> [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/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :crmeb-admin
解决办法
maven版本使用3.6
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}