You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using latest plexus-compiler-eclipse (and ecj), when changing a java file and just compiling without clean, I'm getting:
Compilation failure
Unknown source: java.lang.IllegalArgumentException: File /home/foo/target/generated-sources/annotations/foo/SomeMapperImpl.java is specified more than once
Using latest
plexus-compiler-eclipse
(andecj
), when changing a java file and just compiling withoutclean
, I'm getting:The mapper is generated via mapstruct.
When adding
-X
I can see here that the file is indeed passed twice to ECJ:https://github.com/codehaus-plexus/plexus-compiler/blob/plexus-compiler-2.12.0/plexus-compilers/plexus-compiler-eclipse/src/main/java/org/codehaus/plexus/compiler/eclipse/EclipseJavaCompiler.java#L357
Cause:
addExtraSources()
:plexus-compiler/plexus-compilers/plexus-compiler-eclipse/src/main/java/org/codehaus/plexus/compiler/eclipse/EclipseJavaCompiler.java
Lines 628 to 638 in f6c899b
Potential fix: use
Set
or makeaddExtraSources()
more intelligent.The text was updated successfully, but these errors were encountered: