You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Brian Bonner <bk...@gmail.com> on 2005/11/29 05:29:25 UTC
m2 - target/xmlbeans-source to be included as source dir for eclipse
I'm generating java source using xmlbeans from a schema. the source
is landing in target/xmlbeans-source. Is there an easy way to include
that source directory in the eclipse build path when I run
eclipse:eclipse? Or is there another approach i should use?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: m2 - target/xmlbeans-source to be included as source dir for eclipse
Posted by Ian Vellosa <ve...@btopenworld.com>.
Brian,
I'm not sure if this is the correct way to do things, but in the
build section of my project I have added:
<build>
<resources>
...
<!-- include the generated java, so we can see it in eclipse -->
<resource>
<directory>
${project.build.directory}/generated-sources/xdoclet
</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
</build>
This would then ensure that the java code from xDoclet showed up in
eclispe. I added the exclude *.java, so that the generated code would
not end up in the jar file at the end, only the compiled classes.
Hope that this helps?
IV
--- Brian Bonner <bk...@gmail.com> wrote:
> I'm generating java source using xmlbeans from a schema. the
> source is landing in target/xmlbeans-source. Is there an easy
> way to include that source directory in the eclipse build path
> when I run eclipse:eclipse? Or is there another approach i
> should use?
>
> Thanks.
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org