You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Maximilian A. Ott" <ma...@semandex.net> on 2003/07/08 17:41:57 UTC

How to control java:compile

Working my way down the issues:

How do I control the java compile targets?

In my current ant targets I:

* use "excludes" to exclude java sources which aren't working or
obsolete
* rmic
* jaxb builds

Also for some of my libraries I create multiple jars, like

libX-core, libX-all

Can I do that?

Thanks,

-max


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: How to control java:compile

Posted by John Casey <jd...@commonjava.org>.
Dunno if you've already gotten a response from this, but here goes:

For controlling which classes get compiled, try the <sourceModification>
section under the <build> specification in the project.xml. It allows
you to put in <excludes><exclude>...</exclude></excludes> and the same
thing for includes...I believe it just has a required trigger, which is
like a missing class (which class name to specify is up to you; I
usually just put in a dummy class name to get consistent build behavior)
or a property which would be previously set in the build somewhere...

For the creation of multiple jars, I'm pretty sure this goes against the
architectural assumptions of a single Maven project.  The way these
folks have designed Maven, there is a one-to-one mapping between a
project and a particular type of artifact it produces.  Therefore, to
produce multiple jars you might have to resort to something like carving
up the project into subprojects, and then calling their builds from the
reactor...

Cheers,
John

On Tue, 2003-07-08 at 10:41, Maximilian A. Ott wrote:
> Working my way down the issues:
> 
> How do I control the java compile targets?
> 
> In my current ant targets I:
> 
> * use "excludes" to exclude java sources which aren't working or
> obsolete
> * rmic
> * jaxb builds
> 
> Also for some of my libraries I create multiple jars, like
> 
> libX-core, libX-all
> 
> Can I do that?
> 
> Thanks,
> 
> -max
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org