maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baptiste MATHUS>
Subject Re: src directories
Date Mon, 05 Jul 2010 11:53:59 GMT

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 :


2010/7/4 Kyong Park <>

> 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 -
Sauvez un arbre,
Mangez un castor !

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message