Код: Выделить всё
> > Task :compileJava FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong: Execution failed for task ':compileJava'.
> > Could not resolve all files for configuration ':compileClasspath'.
> > Could not resolve org.testng:testng:7.7.1.
> Required by:
> project :
> > No matching variant of org.testng:testng:7.7.1 was found. The consumer was configured to find a library for use during compile-time,
> compatible with Java 9, preferably in the form of class files,
> preferably optimized for standard JVMs, and its dependencies declared
> externally but:
> - Variant 'antApiElements' capability org.testng:testng-ant:7.7.1 declares a library for use during
> compile-time, packaged as a jar, and its dependencies declared
> externally:
> - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a
> component, compatible with Java 9
> - Other compatible attribute:
> - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
> - Variant 'antRuntimeElements' capability org.testng:testng-ant:7.7.1 declares a library for use during runtime,
> packaged as a jar, and its dependencies declared externally:
> - Incompatible because this component declares a component, compatible with Java 11 and the consumer needed a
> component, compatible with Java 9
> - Other compatible attribute:
> - Doesn't say anything about its target Java environment (preferred optimized for standard JVMs)
добавил файл свойств в конфигурации Jenkins с домашним путем Java< /p>
ничего из вышеперечисленного не помогло
Подробнее здесь: https://stackoverflow.com/questions/789 ... nkins-java
Мобильная версия