我已经使用Eclipse IDE从我的Java项目创建了一个jar。 然后我已经将该jar添加到我的spring boot maven项目的构建路径中。 当我试图maven干净和添加我的自定义jar后安装,我无法成功运行maven安装。 我收到以下错误,无法安装maven installer
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project springBootExample: Compilation failure: Compilation failure:
[ERROR] error reading C:\Users\VAIBHAV-PC\.m2\repository\org\hsqldb\hsqldb\2.3.3\hsqldb-2.3.3.jar; invalid LOC header (bad signature)
[ERROR] /D:springBootExample/src/main/java/com/springBootExample/service/impl/UserServiceImpl.java:[9,29] package com.ResponceGenerator does not exist
[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.
这似乎是相关的:[错误]错误读取C:\ Users \ VAIBHAV-P C.m2 \库\组织\ HSQLDB \ HSQLDB \ 2.3.3 \ HSQLDB-2.3.3.jar;无效的LOC标头(错误签名)[错误]。按照错误消息运行并打开-X开关。你会得到更多的信息。我觉得Maven找到了。这是您当地的.m2回购有问题。 – duffymo
删除'C:\ Users \ VAIBHAV-PC.m2 \ repository \ org \ hsqldb \ hsqldb \ 2.3.3'文件夹并重试。 – talex
'VAIBHAV-PC.m2'看起来很奇怪。可能是错误的Maven仓库文件夹设置。你如何调用maven?同时检查'settings.xml'。 – talex