编译github源码报错
错误信息:Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed.
解决:mvn clean install -DskipTests -Denforcer.skip=true
idea行号之间有空行
解决:File/Settings/Editor/Inlay Hints/取消code version
导入的jar包消失,编译报无法找到包
错误信息: File/Settings/Build, Execution, Deployment/Build Tools/Maven/Runner 取消Delegate IDE build/run actions to Maven
解决:删除target、重新加载maven xml
idea控制台下编译打包
报错信息:Registry key ‘Software\JavaSoft\Java Runtime Environment\CurrentVersion’
has value ‘1.8’, but ‘1.7’ is required.
Error: could not find java.dll
Error: could not find Java 2 Runtime Environment.
解决: File/Settings/Tools/Terminal/Application Settings/shell path: 把powershell 改为C:\WINDOWS\system32\cmd.exe