double build

2008-01-29 Thread supareno

hello,

i need to do a double compilation
- one for java 6
- one for java 5 (with specifics jars)

for the moment, i have two projects with differents POMs.
is it possible to do this with  single POM file?
can i merge them with two 'build' tag??
is anybody has ever done this?


regards
supareno

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: double build

2008-01-29 Thread Erez Nahir
Hi supareno,

Maven profile is your friend in this case, see
http://maven.apache.org/guides/introduction/introduction-to-profiles.html
search
for "jdk" to see how you can activate a profile based on JDK version.

Erez.

On Jan 29, 2008 1:50 PM, supareno <[EMAIL PROTECTED]> wrote:

> hello,
>
> i need to do a double compilation
> - one for java 6
> - one for java 5 (with specifics jars)
>
> for the moment, i have two projects with differents POMs.
> is it possible to do this with  single POM file?
> can i merge them with two 'build' tag??
> is anybody has ever done this?
>
>
> regards
> supareno
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: double build

2008-02-13 Thread Trevor Torrez
how do you do this if you need both?  do you have to run maven twice,
once for each profile?

Thanks

On Jan 29, 2008 8:24 AM, Erez Nahir <[EMAIL PROTECTED]> wrote:
> Hi supareno,
>
> Maven profile is your friend in this case, see
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> search
> for "jdk" to see how you can activate a profile based on JDK version.
>
> Erez.
>
>
> On Jan 29, 2008 1:50 PM, supareno <[EMAIL PROTECTED]> wrote:
>
> > hello,
> >
> > i need to do a double compilation
> > - one for java 6
> > - one for java 5 (with specifics jars)
> >
> > for the moment, i have two projects with differents POMs.
> > is it possible to do this with  single POM file?
> > can i merge them with two 'build' tag??
> > is anybody has ever done this?
> >
> >
> > regards
> > supareno
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: double build

2008-02-13 Thread Erez Nahir
In our project we do not need it, but I would guess you need to run a build
per JDK you want (my proposal would be, if HW is not a major issue, get two
boxes and setup each one with it's own JDK)

On Thu, Feb 14, 2008 at 6:32 AM, Trevor Torrez <[EMAIL PROTECTED]> wrote:

> how do you do this if you need both?  do you have to run maven twice,
> once for each profile?
>
> Thanks
>
> On Jan 29, 2008 8:24 AM, Erez Nahir <[EMAIL PROTECTED]> wrote:
> > Hi supareno,
> >
> > Maven profile is your friend in this case, see
> >
> http://maven.apache.org/guides/introduction/introduction-to-profiles.html
> > search
> > for "jdk" to see how you can activate a profile based on JDK version.
> >
> > Erez.
> >
> >
> > On Jan 29, 2008 1:50 PM, supareno <[EMAIL PROTECTED]> wrote:
> >
> > > hello,
> > >
> > > i need to do a double compilation
> > > - one for java 6
> > > - one for java 5 (with specifics jars)
> > >
> > > for the moment, i have two projects with differents POMs.
> > > is it possible to do this with  single POM file?
> > > can i merge them with two 'build' tag??
> > > is anybody has ever done this?
> > >
> > >
> > > regards
> > > supareno
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>