Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure executing groovy-eclipse compiler: #185

Closed
ghost opened this issue Jul 7, 2016 · 1 comment
Closed

Failure executing groovy-eclipse compiler: #185

ghost opened this issue Jul 7, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 7, 2016

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

  • Java 1.8
  • Maven 3.3.9

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.

@eric-milles
Copy link
Member

Is this still an open issue for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant