agreed,
I think before configure setting.xml , developer/builder must config
~/.bash_profile. add blow lines:

JAVA_HOME=/usrs/path
JBOSS_HOME=/jboss7/path
export JAVA_HOME
export JBOSS_HOME


.....


2012/11/27 <[email protected]>

> Send Engine-devel mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.ovirt.org/mailman/listinfo/engine-devel
> or, via email, send a message with subject or body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Engine-devel digest..."
>
>
> Today's Topics:
>
>    1. maven settings.xml in building ovirt engine wiki (Alissa Bonas)
>    2. Re: maven settings.xml in building ovirt engine wiki
>       (Alon Bar-Lev)
>    3. Re: maven settings.xml in building ovirt engine wiki
>       (Laszlo Hornyak)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 26 Nov 2012 04:15:14 -0500 (EST)
> From: Alissa Bonas <[email protected]>
> To: [email protected]
> Subject: [Engine-devel] maven settings.xml in building ovirt engine
>         wiki
> Message-ID:
>         <[email protected]>
> Content-Type: text/plain; charset=utf-8
>
> Hi,
>
> In this wiki http://wiki.ovirt.org/wiki/Building_oVirt_engine
>
> The suggested maven settings.xml contains hardcoded paths to jboss_home
> and java_home.
> IMHO it's better to use environment variables to take the above settings
> from there, instead of managing those settings twice in 2 different places.
>
> The current settings look like this (note that java path is incorrect
> anyway, including /bin/java)
>
>  <jbossHome>/usr/share/jboss-as</jbossHome>
>
>  
> <JAVA_HOME>/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java</JAVA_HOME>
>
> How about changing settings.xml to something like:
>
>   <jbossHome>${env.JBOSS_HOME}</jbossHome>
>   <JAVA_HOME>${env.JAVA_HOME}</JAVA_HOME>
>
>
> Does anyone see a problem with the suggested approach?
>
> Thanks
>
> Alissa
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 26 Nov 2012 04:18:57 -0500 (EST)
> From: Alon Bar-Lev <[email protected]>
> To: Alissa Bonas <[email protected]>
> Cc: [email protected]
> Subject: Re: [Engine-devel] maven settings.xml in building ovirt
>         engine wiki
> Message-ID:
>         <[email protected]>
> Content-Type: text/plain; charset=utf-8
>
>
>
> ----- Original Message -----
> > From: "Alissa Bonas" <[email protected]>
> > To: [email protected]
> > Sent: Monday, November 26, 2012 11:15:14 AM
> > Subject: [Engine-devel] maven settings.xml in building ovirt engine wiki
> >
> > Hi,
> >
> > In this wiki http://wiki.ovirt.org/wiki/Building_oVirt_engine
> >
> > The suggested maven settings.xml contains hardcoded paths to
> > jboss_home and java_home.
> > IMHO it's better to use environment variables to take the above
> > settings from there, instead of managing those settings twice in 2
> > different places.
> >
> > The current settings look like this (note that java path is incorrect
> > anyway, including /bin/java)
> >
> >  <jbossHome>/usr/share/jboss-as</jbossHome>
> >
>  
> <JAVA_HOME>/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java</JAVA_HOME>
> >
> > How about changing settings.xml to something like:
> >
> >   <jbossHome>${env.JBOSS_HOME}</jbossHome>
> >   <JAVA_HOME>${env.JAVA_HOME}</JAVA_HOME>
> >
> >
> > Does anyone see a problem with the suggested approach?
>
> Well, I did not use this either... just pass -DjbossHome=... to maven.
>
> >
> > Thanks
> >
> > Alissa
> >
> > _______________________________________________
> > Engine-devel mailing list
> > [email protected]
> > http://lists.ovirt.org/mailman/listinfo/engine-devel
> >
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 26 Nov 2012 11:52:52 -0500 (EST)
> From: Laszlo Hornyak <[email protected]>
> To: Alissa Bonas <[email protected]>
> Cc: [email protected]
> Subject: Re: [Engine-devel] maven settings.xml in building ovirt
>         engine wiki
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=utf-8
>
> Hi,
>
> That too could work, but once it already needs to be in the settings.xml,
> why would you want another configuration file (like .bashrc)?
>
> ----- Original Message -----
> > From: "Alissa Bonas" <[email protected]>
> > To: [email protected]
> > Sent: Monday, November 26, 2012 10:15:14 AM
> > Subject: [Engine-devel] maven settings.xml in building ovirt engine wiki
> >
> > Hi,
> >
> > In this wiki http://wiki.ovirt.org/wiki/Building_oVirt_engine
> >
> > The suggested maven settings.xml contains hardcoded paths to
> > jboss_home and java_home.
> > IMHO it's better to use environment variables to take the above
> > settings from there, instead of managing those settings twice in 2
> > different places.
> >
> > The current settings look like this (note that java path is incorrect
> > anyway, including /bin/java)
> >
> >  <jbossHome>/usr/share/jboss-as</jbossHome>
> >
>  
> <JAVA_HOME>/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java</JAVA_HOME>
> >
> > How about changing settings.xml to something like:
> >
> >   <jbossHome>${env.JBOSS_HOME}</jbossHome>
> >   <JAVA_HOME>${env.JAVA_HOME}</JAVA_HOME>
> >
> >
> > Does anyone see a problem with the suggested approach?
> >
> > Thanks
> >
> > Alissa
> >
> > _______________________________________________
> > Engine-devel mailing list
> > [email protected]
> > http://lists.ovirt.org/mailman/listinfo/engine-devel
> >
>
>
> ------------------------------
>
> _______________________________________________
> Engine-devel mailing list
> [email protected]
> http://lists.ovirt.org/mailman/listinfo/engine-devel
>
>
> End of Engine-devel Digest, Vol 14, Issue 70
> ********************************************
>



-- 
独立之思想,自由之精神。
                        --陈寅恪
_______________________________________________
Engine-devel mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-devel

Reply via email to