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">&lt;<a href="mailto:engine-devel-request@ovirt.org" target="_blank">engine-devel-request@ovirt.org</a>&gt;</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>
&nbsp; &nbsp; &nbsp; &nbsp; <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>
&nbsp; &nbsp; &nbsp; &nbsp; <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 &#39;help&#39; to<br>
&nbsp; &nbsp; &nbsp; &nbsp; <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>
&nbsp; &nbsp; &nbsp; &nbsp; <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 &quot;Re: Contents of Engine-devel digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
&nbsp; &nbsp;1. maven settings.xml in building ovirt engine wiki (Alissa Bonas)<br>
&nbsp; &nbsp;2. Re: maven settings.xml in building ovirt engine wiki<br>
&nbsp; &nbsp; &nbsp; (Alon Bar-Lev)<br>
&nbsp; &nbsp;3. Re: maven settings.xml in building ovirt engine wiki<br>
&nbsp; &nbsp; &nbsp; (Laszlo Hornyak)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Mon, 26 Nov 2012 04:15:14 -0500 (EST)<br>
From: Alissa Bonas &lt;<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>&gt;<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>
&nbsp; &nbsp; &nbsp; &nbsp; wiki<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:1007139143.6796345.1353921314570.JavaMail.root@redhat.com">1007139143.6796345.1353921314570.JavaMail.root@redhat.com</a>&gt;<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&#39;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>
&nbsp;&lt;jbossHome&gt;/usr/share/jboss-as&lt;/jbossHome&gt;<br>
&nbsp;&lt;JAVA_HOME&gt;/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java&lt;/JAVA_HOME&gt;<br>
<br>
How about changing settings.xml to something like:<br>
<br>
&nbsp; &lt;jbossHome&gt;${env.JBOSS_HOME}&lt;/jbossHome&gt;<br>
&nbsp; &lt;JAVA_HOME&gt;${env.JAVA_HOME}&lt;/JAVA_HOME&gt;<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 &lt;<a href="mailto:alonbl@redhat.com">alonbl@redhat.com</a>&gt;<br>
To: Alissa Bonas &lt;<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>&gt;<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>
&nbsp; &nbsp; &nbsp; &nbsp; engine wiki<br>
Message-ID:<br>
&nbsp; &nbsp; &nbsp; &nbsp; &lt;<a href="mailto:1686367332.1388894.1353921537535.JavaMail.root@redhat.com">1686367332.1388894.1353921537535.JavaMail.root@redhat.com</a>&gt;<br>
Content-Type: text/plain; charset=utf-8<br>
<br>
<br>
<br>
----- Original Message -----<br>
&gt; From: &quot;Alissa Bonas&quot; &lt;<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>&gt;<br>
&gt; To: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
&gt; Sent: Monday, November 26, 2012 11:15:14 AM<br>
&gt; Subject: [Engine-devel] maven settings.xml in building ovirt engine wiki<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; The suggested maven settings.xml contains hardcoded paths to<br>
&gt; jboss_home and java_home.<br>
&gt; IMHO it&#39;s better to use environment variables to take the above<br>
&gt; settings from there, instead of managing those settings twice in 2<br>
&gt; different places.<br>
&gt;<br>
&gt; The current settings look like this (note that java path is incorrect<br>
&gt; anyway, including /bin/java)<br>
&gt;<br>
&gt; &nbsp;&lt;jbossHome&gt;/usr/share/jboss-as&lt;/jbossHome&gt;<br>
&gt; &nbsp;&lt;JAVA_HOME&gt;/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java&lt;/JAVA_HOME&gt;<br>
&gt;<br>
&gt; How about changing settings.xml to something like:<br>
&gt;<br>
&gt; &nbsp; &lt;jbossHome&gt;${env.JBOSS_HOME}&lt;/jbossHome&gt;<br>
&gt; &nbsp; &lt;JAVA_HOME&gt;${env.JAVA_HOME}&lt;/JAVA_HOME&gt;<br>
&gt;<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Alissa<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Engine-devel mailing list<br>
&gt; <a href="mailto:Engine-devel@ovirt.org">Engine-devel@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/engine-devel" target="_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a><br>
&gt;<br>
<br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Mon, 26 Nov 2012 11:52:52 -0500 (EST)<br>
From: Laszlo Hornyak &lt;<a href="mailto:lhornyak@redhat.com">lhornyak@redhat.com</a>&gt;<br>
To: Alissa Bonas &lt;<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>&gt;<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>
&nbsp; &nbsp; &nbsp; &nbsp; engine wiki<br>
Message-ID: &lt;<a href="mailto:110546079.728955.1353948772248.JavaMail.root@redhat.com">110546079.728955.1353948772248.JavaMail.root@redhat.com</a>&gt;<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>
&gt; From: &quot;Alissa Bonas&quot; &lt;<a href="mailto:abonas@redhat.com">abonas@redhat.com</a>&gt;<br>
&gt; To: <a href="mailto:engine-devel@ovirt.org">engine-devel@ovirt.org</a><br>
&gt; Sent: Monday, November 26, 2012 10:15:14 AM<br>
&gt; Subject: [Engine-devel] maven settings.xml in building ovirt engine wiki<br>
&gt;<br>
&gt; Hi,<br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; The suggested maven settings.xml contains hardcoded paths to<br>
&gt; jboss_home and java_home.<br>
&gt; IMHO it&#39;s better to use environment variables to take the above<br>
&gt; settings from there, instead of managing those settings twice in 2<br>
&gt; different places.<br>
&gt;<br>
&gt; The current settings look like this (note that java path is incorrect<br>
&gt; anyway, including /bin/java)<br>
&gt;<br>
&gt; &nbsp;&lt;jbossHome&gt;/usr/share/jboss-as&lt;/jbossHome&gt;<br>
&gt; &nbsp;&lt;JAVA_HOME&gt;/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.0.x86_64/bin/java&lt;/JAVA_HOME&gt;<br>
&gt;<br>
&gt; How about changing settings.xml to something like:<br>
&gt;<br>
&gt; &nbsp; &lt;jbossHome&gt;${env.JBOSS_HOME}&lt;/jbossHome&gt;<br>
&gt; &nbsp; &lt;JAVA_HOME&gt;${env.JAVA_HOME}&lt;/JAVA_HOME&gt;<br>
&gt;<br>
&gt;<br>
&gt; Does anyone see a problem with the suggested approach?<br>
&gt;<br>
&gt; Thanks<br>
&gt;<br>
&gt; Alissa<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Engine-devel mailing list<br>
&gt; <a href="mailto:Engine-devel@ovirt.org">Engine-devel@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/engine-devel" target="_blank">http://lists.ovirt.org/mailman/listinfo/engine-devel</a><br>
&gt;<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>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --陈寅恪<br>