I just verified this on some dummy project and it works as expected
with workspace dependency resolution.
Here is a short checklist to verify:
- you may have to use the latest xmlbeans Maven plugin, e.g. I am using
version 2.3.0 (2.0 - wasn't working for me)
- make sure you run "Maven / Update Project configuration" and after
that check target/generated-sources/xmlbeans folder is added to the
project source folders (you should see it in the Package Explorer)
- check that project that depends on project with generated sources
actually have project reference and not the jar in "Maven Dependencies"
classpaht container (verify that dependency version match project
version, you can enable Maven version decorator to make it easier, see
Window / Preferences / General / Appearance / Label Decorators / Maven
version decorator)
regards,
Eugene
huntc wrote:
Hi Eugene et. al,
I have a project that uses the xmlbeans plugin to generate schema classes.
Another project in my workspace depends on these generated classes. I'm
getting errors in my dependent project given that the xmlbeans generated
classes cannot be resolved.
I think my issue is very similar to what has been described here:
http://www.nabble.com/Interproject-Dependencies---classes-not-found-td10128808.html#a10138953
... except none of the fixes offered there work for me.
In my dependent project, if I disable "Resolve dependencies from Workspace
projects" then all is well (I get no errors in the dependent project).
Any ideas?
Cheers,
-C
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email