Jenkinsを初めて使用してmavenプロジェクトを実行しようとしていますが、Jenkins - console O/Pで次のエラーが発生しています。Jenkins - Mavenエラー - メインクラスが見つかりません。
Error: Could not find or load main class MAVEN_HOME
ERROR: Failed to launch Maven. Exit code = 1
Finished: FAILURE
マイPOM
私は成功した日食でMavenプロジェクトを実行することができるよに成功日食に
<i>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.aig.cucumberwork</groupId>
<artifactId>com.aig.cucumberwork</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.7.1</version>
</dependency>
<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.11</version>
<scope>test</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-java -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-java</artifactId>
<version>1.2.2</version>
</dependency>
<!-- https://mvnrepository.com/artifact/info.cukes/cucumber-junit -->
<dependency>
<groupId>info.cukes</groupId>
<artifactId>cucumber-junit</artifactId>
<version>1.2.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
</i>
Maven build
Root POM : C:\Users\marajend\test\com.aig.cucumberwork\pom.xml
をMavenプロジェクトを実行することができています
ツールセクションにMVNを追加しましたか? –
ジェンキンスのどこかで '$'を忘れてしまったように見えますか? MAVEN_HOMEは文字列ではなく変数でなければなりません。 –