Thanks Jorg for the pointer to using multiple executions of the compiler.  I
tried setting that up
and I see it try to run, but the it says the classes are already up to
date.  I am assuming that this
is because it is still looking at the same outputDirectory.

How would I configure a different output directory for the execution that I
created?  I dont see any
compiler options that will allow this and setting the <outputDirectory>
option seems to happen at the
project level.  So it does not appear possible to set a second output
directory that I could then
jar up.  Searching in the forums seem to indicate setting a second output
directory is not possible
either.

Any suggestions?

Thanks,
Kevin


On Mon, Aug 18, 2008 at 4:33 PM, Jörg Schaible <[EMAIL PROTECTED]>wrote:

> Hi Kevin,
>
> Kevin Kingsbury wrote:
>
> > Thanks for the reply Tobias.
> >
> > I will look at build profiles more and see if that will help.
> >
> > One additional question though.  Is there any way to run both profiles
> > using a single maven command.  What I was hoping to accomplish is to
> > run the 1.5 compile and then after that the 1.4 compile so both
> > versions of jar are created once the maven command has finished.  The
> > way I understand it now, I would need to call the two build profiles
> > separately.
>
> In this case you do not use profiles, but configure for the compiler and
> jar
> plugin a second execution. The configuration for the second execution of
> the compiler plugin must use a different target directory and the second
> execution of the jar plugin must create an archive for that directory.
>
> An alternative is to use a separate project for the 1.4 version. Simply
> create an attached source jar when creating the 1.5 version and extract and
> compile this sources in the 1.4 project.
>
> - Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to