agreed,<br>I think before configure setting.xml , developer/builder must config ~/.bash_profile. add blow lines:<br><br>JAVA_HOME=/usrs/path<br>JBOSS_HOME=/jboss7/path<br>export JAVA_HOME<br>export JBOSS_HOME<br><br><br>.....<br>
<br><br><div class="gmail_quote">2012/11/27 <span dir="ltr"><<a href="mailto:engine-devel-request@ovirt.org" target="_blank">engine-devel-request@ovirt.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send Engine-devel mailing list submissions to<br>
<a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.ovirt.org/mailman/listinfo/engine-devel" target="_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:engine-devel-request@ovirt.org">engine-devel-request@ovirt.org</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:engine-devel-owner@ovirt.org">engine-devel-owner@ovirt.org</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Engine-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. maven settings.xml in building ovirt engine wiki (Alissa Bonas)<br>
2. Re: maven settings.xml in building ovirt engine wiki<br>
(Alon Bar-Lev)<br>
3. Re: maven settings.xml in building ovirt engine wiki<br>
(Laszlo Hornyak)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 26 Nov 2012 04:15:14 -0500 (EST)<br>
From: Alissa Bonas <<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>><br>
To: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
Subject: [Engine-devel] maven settings.xml in building ovirt engine<br>
wiki<br>
Message-ID:<br>
<<a href="mailto:1007139143.6796345.1353921314570.JavaMail.root@redhat.com">1007139143.6796345.1353921314570.JavaMail.root@redhat.com</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hi,<br>
<br>
In this wiki <a href="http://wiki.ovirt.org/wiki/Building_oVirt_engine" target="_blank">http://wiki.ovirt.org/wiki/Building_oVirt_engine</a><br>
<br>
The suggested maven settings.xml contains hardcoded paths to jboss_home and java_home.<br>
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.<br>
<br>
The current settings look like this (note that java path is incorrect anyway, including /bin/java)<br>
<br>
<jbossHome>/usr/share/jboss-as</jbossHome><br>
<JAVA_HOME>/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java</JAVA_HOME><br>
<br>
How about changing settings.xml to something like:<br>
<br>
<jbossHome>${env.JBOSS_HOME}</jbossHome><br>
<JAVA_HOME>${env.JAVA_HOME}</JAVA_HOME><br>
<br>
<br>
Does anyone see a problem with the suggested approach?<br>
<br>
Thanks<br>
<br>
Alissa<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 26 Nov 2012 04:18:57 -0500 (EST)<br>
From: Alon Bar-Lev <<a href="mailto:alonbl@redhat.com">alonbl@redhat.com</a>><br>
To: Alissa Bonas <<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>><br>
Cc: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
Subject: Re: [Engine-devel] maven settings.xml in building ovirt<br>
engine wiki<br>
Message-ID:<br>
<<a href="mailto:1686367332.1388894.1353921537535.JavaMail.root@redhat.com">1686367332.1388894.1353921537535.JavaMail.root@redhat.com</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
<br>
<br>
----- Original Message -----<br>
> From: "Alissa Bonas" <<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>><br>
> To: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
> Sent: Monday, November 26, 2012 11:15:14 AM<br>
> Subject: [Engine-devel] maven settings.xml in building ovirt engine wiki<br>
><br>
> Hi,<br>
><br>
> In this wiki <a href="http://wiki.ovirt.org/wiki/Building_oVirt_engine" target="_blank">http://wiki.ovirt.org/wiki/Building_oVirt_engine</a><br>
><br>
> The suggested maven settings.xml contains hardcoded paths to<br>
> jboss_home and java_home.<br>
> IMHO it's better to use environment variables to take the above<br>
> settings from there, instead of managing those settings twice in 2<br>
> different places.<br>
><br>
> The current settings look like this (note that java path is incorrect<br>
> anyway, including /bin/java)<br>
><br>
> <jbossHome>/usr/share/jboss-as</jbossHome><br>
> <JAVA_HOME>/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java</JAVA_HOME><br>
><br>
> How about changing settings.xml to something like:<br>
><br>
> <jbossHome>${env.JBOSS_HOME}</jbossHome><br>
> <JAVA_HOME>${env.JAVA_HOME}</JAVA_HOME><br>
><br>
><br>
> Does anyone see a problem with the suggested approach?<br>
<br>
Well, I did not use this either... just pass -DjbossHome=... to maven.<br>
<br>
><br>
> Thanks<br>
><br>
> Alissa<br>
><br>
> _______________________________________________<br>
> Engine-devel mailing list<br>
> <a href="mailto:Engine-devel@ovirt.org">Engine-devel@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/engine-devel" target="_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a><br>
><br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 26 Nov 2012 11:52:52 -0500 (EST)<br>
From: Laszlo Hornyak <<a href="mailto:lhornyak@redhat.com">lhornyak@redhat.com</a>><br>
To: Alissa Bonas <<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>><br>
Cc: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
Subject: Re: [Engine-devel] maven settings.xml in building ovirt<br>
engine wiki<br>
Message-ID: <<a href="mailto:110546079.728955.1353948772248.JavaMail.root@redhat.com">110546079.728955.1353948772248.JavaMail.root@redhat.com</a>><br>
Content-Type: text/plain; charset=utf-8<br>
<br>
Hi,<br>
<br>
That too could work, but once it already needs to be in the settings.xml, why would you want another configuration file (like .bashrc)?<br>
<br>
----- Original Message -----<br>
> From: "Alissa Bonas" <<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>><br>
> To: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
> Sent: Monday, November 26, 2012 10:15:14 AM<br>
> Subject: [Engine-devel] maven settings.xml in building ovirt engine wiki<br>
><br>
> Hi,<br>
><br>
> In this wiki <a href="http://wiki.ovirt.org/wiki/Building_oVirt_engine" target="_blank">http://wiki.ovirt.org/wiki/Building_oVirt_engine</a><br>
><br>
> The suggested maven settings.xml contains hardcoded paths to<br>
> jboss_home and java_home.<br>
> IMHO it's better to use environment variables to take the above<br>
> settings from there, instead of managing those settings twice in 2<br>
> different places.<br>
><br>
> The current settings look like this (note that java path is incorrect<br>
> anyway, including /bin/java)<br>
><br>
> <jbossHome>/usr/share/jboss-as</jbossHome><br>
> <JAVA_HOME>/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java</JAVA_HOME><br>
><br>
> How about changing settings.xml to something like:<br>
><br>
> <jbossHome>${env.JBOSS_HOME}</jbossHome><br>
> <JAVA_HOME>${env.JAVA_HOME}</JAVA_HOME><br>
><br>
><br>
> Does anyone see a problem with the suggested approach?<br>
><br>
> Thanks<br>
><br>
> Alissa<br>
><br>
> _______________________________________________<br>
> Engine-devel mailing list<br>
> <a href="mailto:Engine-devel@ovirt.org">Engine-devel@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/engine-devel" target="_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a><br>
><br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Engine-devel mailing list<br>
<a href="mailto:Engine-devel@ovirt.org">Engine-devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/engine-devel" target="_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a><br>
<br>
<br>
End of Engine-devel Digest, Vol 14, Issue 70<br>
********************************************<br>
</blockquote></div><br><br clear="all"><br>-- <br>独立之思想,自由之精神。<br> --陈寅恪<br>