Maven打包失败
[ERROR] /G:/12.Java����/SpringBoot-learning/seckill-demo/src/main/java/com/chenhf/config/UserArgumentResolvers.java:[6,26] �����com.sun.deploy.net������
[INFO] 1 error根据提示自定义的UserArgumentResolvers类中导入了一个没用到的包,但是不了解为什么没用到还会导致maven打包失败呢?继续一下,后续查查。
报错信息
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building seckill-demo 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ seckill-demo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 45 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ seckill-demo ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 44 source files to G:\12.Java����\SpringBoot-learning\seckill-demo\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
**[ERROR] /G:/12.Java����/SpringBoot-learning/seckill-demo/src/main/java/com/chenhf/config/UserArgumentResolvers.java:[6,26] �����com.sun.deploy.net������**
**[INFO] 1 error**
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.005 s
[INFO] Finished at: 2022-07-06T22:18:43+08:00
[INFO] Final Memory: 29M/330M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project seckill-demo: Compilation failure
[ERROR] /G:/12.Java����/SpringBoot-learning/seckill-demo/src/main/java/com/chenhf/config/UserArgumentResolvers.java:[6,26] �����com.sun.deploy.net������
[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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?