通过Jenkins编译Maven项目时出现以下错误

时间:2018-07-08 13:57:30

标签: java eclipse maven selenium jenkins

即使在我的POM.xml文件中添加了testNG依赖关系。

通过maven构建项目时,只有通过jenkins才能成功构建该项目,

[ERROR] Failed to execute goal org.apache.maven.plugins:mave`enter code here`n-compiler-plugin:3.1:compile (default-compile) on project SampleProject: Compilation failure: Compilation failure:

[ERROR] /C:/Users/admin/eclipse-workspace/SampleProject/src/main/java/selenium/org/sample/SampleProject/TestBase/TestBase.java:[5,30] package org.testng.annotations does not exist
[ERROR] /C:/Users/admin/eclipse-workspace/SampleProject/src/main/java/selenium/org/sample/SampleProject/TestBase/TestBase.java:[6,30] package org.testng.annotations does not exist
[ERROR] /C:/Users/admin/eclipse-workspace/SampleProject/src/main/java/selenium/org/sample/SampleProject/TestBase/TestBase.java:[10,10] cannot find symbol
[ERROR] symbol:   class BeforeSuite
[ERROR] location: class selenium.org.sample.SampleProject.TestBase.TestBase

0 个答案:

没有答案