1、关于clean报错问题 Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean
Maven项目报错:Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clea
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project study-search: Failed to clean project: Failed to delete D:\Pxxtarget\tomcat\logs\access_log.2017-3-24
[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.
clean tomcat7:run命令执行clean的时候就报错了,不能清除log,那就是log被某个程序占用了,所以不能清除,再重新启动就行了!!!!!
2、Maven Install报错:Perhaps you are running on a JRE rather than a JDK?
所遇问题:
英文描述:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project busiservice: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
中文描述:此环境中未提供编译器,你可能使用jre运行而不是jdk。
引发原因:Eclipse默认在jre上运行,maven install 编译需要jdk中的编译器,而jre中并没有
问题解决:
Window->Preferences
Java->Installed Rres->Add
Directory...
jdk->ok
Java->Installed JREs->Execution Environments->JavaSE-1.7->jdk1.x
Java->Installed JREs->Execution Environments->JavaSE-1.8->jdk1.x
maven->install(编译成功)