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
I have a setup, where I use auto-value-gson in an Eclipse plugin project and with a maven build.
From Eclipse, the normal internal JDT build works.
On Jenkins, without Eclipse running parallel, this work.
But when i try to run the maven build from inside Eclipse, it fails:
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.5.0:compile (default-compile) on project xyz:
Fatal error compiling: 1. ERROR: Failed to write external TypeAdapter for element "x.X" with reason
"Source file already exists : x.X_GsonTypeAdapter"
In Eclipse I have a 'src' source directory with the annotated classes, and an 'apt-gen' source directory where the generated classes from auto-value and auto-value-gson are written to.
In maven, the generated classes are normally written into target\generated-sources\annotations
The maven build from inside Eclipse works, when I delete the content of the apt-gen directory.
This is not necessary for plugins, that use auto-value classes only.
It seems to me, that auto-value-gson somehow conflicts with the apt-gen directory. Can this be fixed please?
The text was updated successfully, but these errors were encountered:
I have a setup, where I use auto-value-gson in an Eclipse plugin project and with a maven build.
From Eclipse, the normal internal JDT build works.
On Jenkins, without Eclipse running parallel, this work.
But when i try to run the maven build from inside Eclipse, it fails:
In Eclipse I have a 'src' source directory with the annotated classes, and an 'apt-gen' source directory where the generated classes from auto-value and auto-value-gson are written to.
In maven, the generated classes are normally written into target\generated-sources\annotations
The maven build from inside Eclipse works, when I delete the content of the apt-gen directory.
This is not necessary for plugins, that use auto-value classes only.
It seems to me, that auto-value-gson somehow conflicts with the apt-gen directory. Can this be fixed please?
The text was updated successfully, but these errors were encountered: