maven错误集

2018.4.22 maven

1.

读取pectjweaver-1.8.13.jar时出错; invalid LOC 
header (bad signature)

解决方法:

到本地仓库中把对应的jar包删掉,让maven重新下载就可以了。

2.An error occurred while filtering resources

解决方法:

3.

[ERROR] Failed to execute goal on project ProjectName: Could not resolve dependencies for project com.xxxx:yyyy:war:1.0.0: The following artifacts could not be resolved: com.fr:fr-core:jar:9.0

解决方法:是因为引用不到jar包导致,需要配置到项目即可,参考:2019-04-02-maven添加本地jar包

4.tomcat启动

10-Apr-2019 20:34:52.030 警告 [localhost-startStop-1] org.apache.catalina.loader.WebappClassLoaderBa
se.clearReferencesThreads The web application [zggk] appears to have started a thread named [Timer-6
] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.lang.Object.wait(Native Method)
 java.util.TimerThread.mainLoop(Timer.java:552)
 java.util.TimerThread.run(Timer.java:505)
20:34:55 WholeModule_AutoBackupTimer WARN [root] 磁盘空间不足。
 20:34:55 WholeModule_AutoBackupTimer WARN [root] 磁盘空间不足。
 10-Apr-2019 20:34:55.435 信息 [WholeModule_AutoBackupTimer] org.apache.catalina.loader.WebappClassL
oaderBase.checkStateForResourceLoading Illegal access: this web application instance has been stoppe
d already. Could not load [com.fr.fs.bakrestore.web.service.module.WholeModule$1]. The following sta
ck trace is thrown for debugging purposes as well as to attempt to terminate the thread which caused
 the illegal access.
 java.lang.IllegalStateException: Illegal access: this web application instance has been stopped alr
eady. Could not load [com.fr.fs.bakrestore.web.service.module.WholeModule$1]. The following stack tr
ace is thrown for debugging purposes as well as to attempt to terminate the thread which caused the
illegal access.

原因是磁盘空间不足导致,比较友好的提示

5.maven项目检出后,项目Properties中Java Build Path没有Libraries对应的Maven Dependencies

解决方法:在试过了网上的添加project文件和classpath文件的方法后,还是没有解决,于是就把项目移除,然后重新导入,发现报错,然后又修改了对应错误的内容,

最后用mvn命令行打包,就会看到一些有针对性的错误提示,在用mvn命令行打包的时候,可以添加-X参数,会启用控制台打印精确的异常提示,方便找出问题所在

6.

更新列表:

参考文章:

相关阅读