[Engine-devel] Engine-devel Digest, Vol 14, Issue 70

适兕 lijiangsheng1 at gmail.com
Tue Nov 27 03:38:59 UTC 2012


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 <engine-devel-request at ovirt.org>

> Send Engine-devel mailing list submissions to
>         engine-devel at ovirt.org
>
> 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
>         engine-devel-request at ovirt.org
>
> You can reach the person managing the list at
>         engine-devel-owner at ovirt.org
>
> 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 <abonas at redhat.com>
> To: engine-devel at ovirt.org
> Subject: [Engine-devel] maven settings.xml in building ovirt engine
>         wiki
> Message-ID:
>         <1007139143.6796345.1353921314570.JavaMail.root at redhat.com>
> 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 <alonbl at redhat.com>
> To: Alissa Bonas <abonas at redhat.com>
> Cc: engine-devel at ovirt.org
> Subject: Re: [Engine-devel] maven settings.xml in building ovirt
>         engine wiki
> Message-ID:
>         <1686367332.1388894.1353921537535.JavaMail.root at redhat.com>
> Content-Type: text/plain; charset=utf-8
>
>
>
> ----- Original Message -----
> > From: "Alissa Bonas" <abonas at redhat.com>
> > To: engine-devel at ovirt.org
> > 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
> > Engine-devel at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/engine-devel
> >
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 26 Nov 2012 11:52:52 -0500 (EST)
> From: Laszlo Hornyak <lhornyak at redhat.com>
> To: Alissa Bonas <abonas at redhat.com>
> Cc: engine-devel at ovirt.org
> Subject: Re: [Engine-devel] maven settings.xml in building ovirt
>         engine wiki
> Message-ID: <110546079.728955.1353948772248.JavaMail.root at redhat.com>
> 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" <abonas at redhat.com>
> > To: engine-devel at ovirt.org
> > 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
> > Engine-devel at ovirt.org
> > http://lists.ovirt.org/mailman/listinfo/engine-devel
> >
>
>
> ------------------------------
>
> _______________________________________________
> Engine-devel mailing list
> Engine-devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/engine-devel
>
>
> End of Engine-devel Digest, Vol 14, Issue 70
> ********************************************
>



-- 
独立之思想,自由之精神。
                        --陈寅恪
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/engine-devel/attachments/20121127/2f1aabee/attachment.html>


More information about the Engine-devel mailing list