Thanks, yes-I'm actually using this now for adding XSDs, and other types of
resources, to src JARs. For example, when I have the module structure:

src/main/java
src/main/resources
src/main/xsd

The builder-helper plugin adds the contents of xsd to the src JAR. Really
nice!

But, the problem is, src/main/xsd isn't included in the generation of the
eclipse .classpath file. The .classpath file will list: src/main/java,
src/main/resources, src/test/java, and src/test/resources. So then, the
question is, how can I direct the plugin to also add "src/main/xsd" to the
.classpath file so it appears as a source folder in eclipse? I have this
same issue with webapps and other kinds of source directories.

On Mon, Jul 5, 2010 at 7:53 AM, Baptiste MATHUS <[email protected]> wrote:

> *Hi,*
>
> By default, Maven only supports one source directory, since this is the
> most
> typical case.
> But it's actually possible to have more than one source folder (for
> example,
> we use it on a partly cc'ed generated sources).
>
> Have a look at the maven-build-helper-plugin :
> http://mojo.codehaus.org/build-helper-maven-plugin/usage.html.
>
> *Cheers*
>
> 2010/7/4 Kyong Park <[email protected]>
>
> > I have to imagine this one's been asked many times before because I've
> > encountered this one for years over several projects/customers/problems
> (I
> > don't just specialize in one type of application development...)
> >
> > There are a number of project source directories, the non-compiled kind,
> > that I interface through eclipse. These range from fairly standard
> > directories such as "src/main/webapp" and "src/main/scripts" to others
> used
> > by various plugins from XSDs to .proto files for generating sources. I
> > don't
> > mind having to add these directories by editing the .classpath or via the
> > UI
> > from time to time but naturally, each time the maven-eclipse-plugin is
> > called, the custom modifications are blown away. Ugh. So, is there a way
> to
> > explicitly control the list of [<classpathentry kind="src"...]
> > declarations,
> > both in terms of content and order, via the maven-eclipse-plugin
> > declaration?
> >
> > If not, why not???
> >
>
>
>
> --
> Baptiste <Batmat> MATHUS - http://batmat.net
> Sauvez un arbre,
> Mangez un castor !
>

Reply via email to