-
Notifications
You must be signed in to change notification settings - Fork 29
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
Does not compile twice with maven-compiler-plugin 3.3 #17
Comments
This seems to be an issue with javac and/or maven-compiler-plugin https://bugs.openjdk.java.net/browse/JDK-8067747 One straightforward fix is to get into the habit of Another suggested workaround is to set maven-compiler-plugin configuration option |
Invoking javac directly seems to work correctly.
|
Added a readme comment about this issue: https://github.com/danielnorberg/auto-matter#known-issues Ideally we'd contribute to maven-compiler-plugin and try to resolve this issue upstream. Any takers? 😃 |
Correct that setting |
Regarding the javac example above - Maven sets the
and the compiler output seems to show that the javac bug is hit when parsing one of the generated files (but I could be reading it wrong, since the error comes after javac says "parsing completed" of the Builder that auto-matter generated):
|
maven-compiler-plugin 3.1 and earlier work. 3.2 and 3.3 fail. Compiling with java7 also breaks but with a different error message:
|
From the maven-compiler-plugin changelog for 3.2, sounds like maybe MCOMPILER-159 could be related? |
Works fine with the following environment.
Might have been fixed? |
Still breaks for me with maven 3.3.3. @udoprog, did you compile twice without a clean in between? |
My bad, missed to remove |
- MCOMPILER-159 - danielnorberg/auto-matter#17 - if this doesn't work, I will disable incremental compilation
- MCOMPILER-159 - danielnorberg/auto-matter#17 - if this doesn't work, I will disable incremental compilation
- MCOMPILER-159 - danielnorberg/auto-matter#17 - if this doesn't work, I will disable incremental compilation
I noticed this in one of my own projects where I was using the latest maven-compiler-plugin 3.3, but you can reproduce it in auto-matter as well.
First time works.
Compiling a second time breaks
https://gist.github.com/jooon/386352b9f922d39dda78
Is this an actual java bug or a problem with maven-compiler-plugin or auto-matter?
The text was updated successfully, but these errors were encountered: