[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openpkg-users
Subject:    Re: Maven package problem.
From:       "David Stenglein" <david.stenglein () gmail ! com>
Date:       2008-11-13 19:23:39
Message-ID: a538ce720811131123m635a2a92t9a3e3ed4d2c6f0ba () mail ! gmail ! com
[Download RAW message or body]

Actually, the problem has more to do with a mixed up environment. I'm not
sure I would call it a bug, but it was a bit confusing:

charm% env | grep JAVA
JAVA_HOME=/openpkg/libexec/java-jdk15
JAVA_PLATFORM=sun-jdk-1.5.0
charm% unset JAVA_PLATFORM
charm% mvn.orig
/openpkg/bin/java:ERROR: invalid JAVA_PLATFORM: "sun-jdk"
charm%

Now that I have openpkg fully merged into my environment, this doesn't
happen. But before, when I was using /openpkg/bin/mvn with my normal
environment, which just had JAVA_HOME set, I would get this error.

It's a little strange because this would only happen within maven. If you
run java directly (no args) it doesn't complain. I'll try to take a closer
look when I get a chance.

-Dave



On Thu, Nov 13, 2008 at 1:57 PM, Ralf S. Engelschall <rse@openpkg.org>wrote:

> On Thu, Nov 13, 2008, David Stenglein wrote:
>
> > The mvn/maven.sh seems to be based on the new java infrastructure, but it
> seems
> > to have a problem.
> >
> > The line at the beginning:
> > export JAVA_PLATFORM="sun-jdk"
> >
> > seems to throw things off. Should this just be removed?
>
> Sorry, can you be more specific: what do you mean by "throw things off"?
> The JAVA_PLATFORM variable just says that the Java has to be a JDK (and
> not GCJ, etc) because (as I can remember) that Maven didn't work with
> GCJ. What does break for you?
>
>                                       Ralf S. Engelschall
>                                       rse@engelschall.com
>                                       www.engelschall.com
>
> ______________________________________________________________________
> OpenPKG                                             http://openpkg.org
> User Communication List                      openpkg-users@openpkg.org
>

[Attachment #3 (text/html)]

Actually, the problem has more to do with a mixed up environment. I&#39;m not sure I \
would call it a bug, but it was a bit confusing:<br><br>charm% env | grep \
JAVA<br>JAVA_HOME=/openpkg/libexec/java-jdk15<br>JAVA_PLATFORM=sun-jdk-1.5.0<br> \
charm% unset JAVA_PLATFORM<br>charm% mvn.orig<br>/openpkg/bin/java:ERROR: invalid \
JAVA_PLATFORM: &quot;sun-jdk&quot;<br>charm% <br><br>Now that I have openpkg fully \
merged into my environment, this doesn&#39;t happen. But before, when I was using \
/openpkg/bin/mvn with my normal environment, which just had JAVA_HOME set, I would \
get this error.<br> <br>It&#39;s a little strange because this would only happen \
within maven. If you run java directly (no args) it doesn&#39;t complain. I&#39;ll \
try to take a closer look when I get a chance.<br><br>-Dave<br><br><br><br><div \
class="gmail_quote"> On Thu, Nov 13, 2008 at 1:57 PM, Ralf S. Engelschall <span \
dir="ltr">&lt;<a href="mailto:rse@openpkg.org">rse@openpkg.org</a>&gt;</span> \
wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, \
204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div><div></div><div \
class="Wj3C7c">On Thu, Nov 13, 2008, David Stenglein wrote:<br> <br>
&gt; The mvn/maven.sh seems to be based on the new java infrastructure, but it \
seems<br> &gt; to have a problem.<br>
&gt;<br>
&gt; The line at the beginning:<br>
&gt; export JAVA_PLATFORM=&quot;sun-jdk&quot;<br>
&gt;<br>
&gt; seems to throw things off. Should this just be removed?<br>
<br>
</div></div>Sorry, can you be more specific: what do you mean by &quot;throw things \
off&quot;?<br> The JAVA_PLATFORM variable just says that the Java has to be a JDK \
(and<br> not GCJ, etc) because (as I can remember) that Maven didn&#39;t work \
with<br> GCJ. What does break for you?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ralf S. Engelschall<br>  &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a \
href="mailto:rse@engelschall.com">rse@engelschall.com</a><br>  &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.engelschall.com" \
target="_blank">www.engelschall.com</a><br> <br>
______________________________________________________________________<br>
OpenPKG &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a \
href="http://openpkg.org" target="_blank">http://openpkg.org</a><br> User \
Communication List &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \
&nbsp; &nbsp;<a href="mailto:openpkg-users@openpkg.org">openpkg-users@openpkg.org</a><br>
 </blockquote></div><br>


______________________________________________________________________
OpenPKG                                             http://openpkg.org
User Communication List                      openpkg-users@openpkg.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic