保错信息:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project falcon-ms-organization: Compilation failure [ERROR] /DATA/jenkins/.jenkins/workspace/springboot项目28环境部署/src/main/java/com/travelsky/falcon/ms/organization/controller/ParApiController.java:[48,31] cannot find symbol [ERROR] symbol: method getAgentId() [ERROR] location: variable request of type com.travelsky.falcon.ms.vo.base.BaseRequestVO<java.lang.Long> [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
问题原因:jenkins maven本地仓库保留有旧的jar 删掉再重新构建即可。
默认的本地仓库一般路径是 /home/.m2/repository