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

Missing class JCTree$JCCompilationUnit inside Eclipse #23

Open
Verdoso opened this issue Feb 14, 2018 · 3 comments
Open

Missing class JCTree$JCCompilationUnit inside Eclipse #23

Verdoso opened this issue Feb 14, 2018 · 3 comments

Comments

@Verdoso
Copy link

Verdoso commented Feb 14, 2018

Hi there,
I'm having a strange issue with latest releases. Everything seems to work fine outside Eclipse, but the maven container inside Eclipse now complains about

org.apache.maven.plugin.PluginContainerException: A required class was missing while executing org.projectlombok:lombok-maven-plugin:1.16.20.0:delombok: com/sun/tools/javac/tree/JCTree$JCCompilationUnit

I tried upgrading to the latest release and that does not solve it.

It's not critical, as I can still run maven, even inside Eclipse, and it works fine. It just looks weird having the project tagged as "broken" when there is nothing wrong with it.

@awhitford
Copy link
Owner

What version of Eclipse? What OS? What is the precise JDK being used by Eclipse?

@Verdoso
Copy link
Author

Verdoso commented Feb 18, 2018

Eclipse: Oxygen.2 Release (4.7.2) (Build id: 20171218-0600)
Maven plugin m2e: 1.8.2.20171007-0217
Maven: Embedded 3.3.9/1.8.2.20171007-0216
Windows 10
Java 8x64

It happens in both my computers with the same installation.

@lars-sh
Copy link

lars-sh commented Aug 2, 2018

I had just the same problem with a similar configuration. In case someone is looking for a workaround: @jeacott1 posted one at projectlombok/lombok#925 (comment). The following extract just adds the delombokTest goal to fix both of them.

<pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.eclipse.m2e</groupId>
                    <artifactId>lifecycle-mapping</artifactId>
                    <version>1.0.0</version>
                    <configuration>
                        <lifecycleMappingMetadata>
                            <pluginExecutions>
                                <pluginExecution>
                                    <pluginExecutionFilter>
                                        <groupId>org.projectlombok</groupId>
                                        <artifactId>lombok-maven-plugin</artifactId>
                                        <versionRange>[1,)</versionRange>
                                        <goals>
                                            <goal>delombok</goal>
                                            <goal>delombokTest</goal>
                                        </goals>
                                    </pluginExecutionFilter>
                                    <action>
                                        <ignore />
                                    </action>
                                </pluginExecution>
                            </pluginExecutions>
                        </lifecycleMappingMetadata>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>

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

3 participants