从TFS(Git存储库)在Jenkins中运行Maven项目时出现编译错误

时间:2019-01-03 11:02:02

标签: java git jenkins

我已经在Jenkins中配置了Maven项目。我正在通过Git存储库(TFS)运行它。我已经将Maven目标设置为全新安装,但出现编译错误。当我从本地存储库运行相同的项目时,即使从Jenkins运行起来也没有问题。

[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /C:/Users/hirendrarajawat/.jenkins/workspace/TFS_SourceProsUS/src/test/java/com/test/automation/UIAutomation/tests/UpdateRegisterdetailsTest.java:[189,39] cannot find symbol
  symbol:   method fillOtheLocation()
  location: class com.test.automation.UIAutomation.uiActions.Requirements.NewRequirement
[INFO] 1 error
[INFO] -------------------------------------------------------------
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[WARNING] Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenFingerprinter$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.832 s
[INFO] Finished at: 2019-01-03T05:17:05-05:00
[INFO] Final Memory: 30M/308M
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:testCompile (default-testCompile) on project : Compilation failure
[ERROR] /C:/Users/hirendrarajawat/.jenkins/workspace/TFS_SourceProsUS/src/test/java/com/test/automation/UIAutomation/tests/UpdateRegisterdetailsTest.java:[189,39] cannot find symbol
[ERROR] symbol:   method fillOtheLocation()
[ERROR] location: class com.test.automation.UIAutomation.uiActions.Requirements.NewRequirement
[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

0 个答案:

没有答案