方法列表(2的效果可能更好)
1.将被占用的文件删除之后,重新打包或编译.
2.多编译几次项目.
3.发现真正可能的原因.(貌似被南航企业版360拦截了,导致targe或maven等文件被占用问题)
4.Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project vos-app-ccsweb: Failed to clean project: Failed to delete D:WorkProjectVOSvos-app-ccsweb argetclassescom
原因:
D:WorkProjectVOSvos-app-ccsweb argetclassescom目录没有生成class文件.(需要重新编译Rebuild项目)
5.IDEA的build编译失效.(文件没有编译成功,Rebuild解决)
6.[2019-11-19 09:16:13] Directory 'D:WorkProjectVOSvos-app-global argetclasses' defined in rebel.xml was not found!(文件没有编译成功,Rebuild解决)
7.如果rebuild还是无效,synchronize pom.xml,jar包更新或下载一下.
8.Failed to execute goal on project vos-app-business-restful: Could not resolve ... war,...jar...(在dependency那里引入war包时加上<type>war<type/>解决,原因,默认加载jar包,但实际只有war包)
9.javax.naming.NameNotFoundException; remaining name 'jboss/datasources/ccs40'
最终问题的解决方案是,将权限关了,解决.
10.503问题解决,web需要打包,然后就可以使用接口restful了.之前错误的做法:将接口包又打了一遍,可能配置有重复的,导致503.