При компиляции Maven-проекта с помощью Дженкинс получаю ниже ошибка.
Получаю ниже ошибка компиляции
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-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 [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:
Что я уже пробовал:
при построении проекта через maven он успешно строится только через jenkins столкнувшись с этой проблемой,
Kornfeld Eliyahu Peter
Похоже, это проблема с порядком сборки...