Hi,
We've recently upgraded Jenkins from 1.549 to 2.12 and one of the jobs has began to fail with the below error.
javac: invalid flag: -javaagent:/var/lib/jenkins/.m2/repository/org/projectlombok/lombok/1.14.8/lombok-1.14.8.jar
Jenkins set is
My pom.xml is as follows:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<!-- 2.8.0-01 and later require maven-compiler-plugin 3.1 or higher -->
<version>3.1</version>
<configuration>
<compilerId>groovy-eclipse-compiler</compilerId>
<verbose>true</verbose>
<compilerArguments>
<javaAgentClass>lombok.core.Agent</javaAgentClass>
<source>1.6</source>
<target>1.6</target>
</compilerArguments>
<fork>true</fork>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-compiler</artifactId>
<version>2.9.1-01</version>
</dependency>
<!-- for 2.8.0-01 and later you must have an explicit dependency on groovy-eclipse-batch -->
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-eclipse-batch</artifactId>
<version>2.3.7-01</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.14.8</version>
</dependency>
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-all</artifactId>
<version>2.3.7</version>
</dependency>
</dependencies>
</plugin>
</plugins>
Unfortunately I cannot reproduce this locally on my machine with maven 3.2.5 and java 8 compiler.
Please let me know if you need anymore information.
Hi,
We've recently upgraded Jenkins from 1.549 to 2.12 and one of the jobs has began to fail with the below error.
javac: invalid flag: -javaagent:/var/lib/jenkins/.m2/repository/org/projectlombok/lombok/1.14.8/lombok-1.14.8.jar
Jenkins set is
My pom.xml is as follows:
Unfortunately I cannot reproduce this locally on my machine with maven 3.2.5 and java 8 compiler.
Please let me know if you need anymore information.