-
Notifications
You must be signed in to change notification settings - Fork 99
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
Update Project... in Eclipse does not work as expected #502
Comments
Hi @alerosmile Could you provide MRE please so we can investigate ? Thanks |
https://github.com/alerosmile/example-jaxb-maven-plugin-episode Delete the |
Thanks, I'll look for it |
…guration phase of m2e (tested in eclipse)
@alerosmile tested against 2.0.10-SNAPSHOT PR #503 -> build is OK now |
…guration phase of m2e (tested in eclipse)
@alerosmile another PR to fix this : #504 -> build is OK now and for another configuration (without catalog but only binding) too |
…ories and no more execute actual XJC
@alerosmile (sorry 😄 ) new PR : #505 |
…ories and no more execute actual XJC
Fixed in jaxb-tools-2.x and in main branch (will do backport in v3 too) |
m2e has 2 lifecycle mappings:
onConfiguration
andonIncremental
.Maven -> Update Project...
in Eclipse runsonConfiguration
and thenonIncremental
. DuringonConfiguration
, the providedBuildContext
is theEclipseEmptyBuildContext
. During this step, no binding files nor catalog files are read or resolved.RawXJC2Mojo.isUpToDate()
returnsfalse
because URLs are not resolved due to the missing catalog. ThereforeXJC2Mojo.doExecute(Options)
is executed, but no files are written duringXJC2Mojo.writeCode(Outline)
. This is ok. But the (empty) episode file is written although it shouldn't.In the next step (
onIncremental
),RawXJC2Mojo.isUpToDate()
returnstrue
because the episode file is up-to-date and no java files are generated!As a workaround, I can set
<episode>false</episode>
. But the plugin should suppress the creation of the episode file if theBuildContext
is theEclipseEmptyBuildContext
.The text was updated successfully, but these errors were encountered: