|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
Can't seem to get rid of 1.6I have set JAVA_HOME to a 1.5 java home.
I have traced the mvn shell script to watch it get used. I have set <source/> and <target/> in the compiler plugin to 1.5. I have checked the results with help:effective-pom. Nonetheless, code that calls the new DocumentBuilderFactory.newInstance(<several args>) compiles and even runs with no errors. I can't easily deinstall 1.6 from my mac. Has anyone else got a suggestion what stupid mistake I'm making here? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: Can't seem to get rid of 1.6My understanding is the by using that target attribute, maven is still using the default java installation to compile, but the byte code generated will be compatible with the java version specified.
Damon -----Original Message----- From: Benson Margulies [mailto:bimargulies@...] Sent: Wednesday, November 04, 2009 10:24 AM To: Maven Users List Subject: Can't seem to get rid of 1.6 I have set JAVA_HOME to a 1.5 java home. I have traced the mvn shell script to watch it get used. I have set <source/> and <target/> in the compiler plugin to 1.5. I have checked the results with help:effective-pom. Nonetheless, code that calls the new DocumentBuilderFactory.newInstance(<several args>) compiles and even runs with no errors. I can't easily deinstall 1.6 from my mac. Has anyone else got a suggestion what stupid mistake I'm making here? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email _____________________________________________________________________ |
|
|
Re: Can't seem to get rid of 1.6A bit more detail from sh -x on the mvn command ... 1.5 goes in, 1.6 comes out.
+ '[' -z '' ']' + '[' -n /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home ']' + '[' -x /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/jre/sh/java ']' + JAVACMD=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java + '[' '!' -x /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java ']' + '[' -z /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home ']' + CLASSWORLDS_LAUNCHER=org.codehaus.classworlds.Launcher + false + exec /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -XX:MaxPermSize=128M -Xmx1g -Dbt.arch=universal-darwin9-gcc40 -classpath /Users/benson/x/trunk/third-party-tools/maven/boot/classworlds-1.1.jar -Dclassworlds.conf=/Users/benson/x/trunk/third-party-tools/maven/bin/m2.conf -Dmaven.home=/Users/benson/x/trunk/third-party-tools/maven org.codehaus.classworlds.Launcher '"clean"' '"compile"' '"-Dbt.root=/Users/benson/x/trunk"' '"-X"' + Error stacktraces are turned on. Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400) Java version: 1.6.0_15 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home On Wed, Nov 4, 2009 at 1:23 PM, Benson Margulies <bimargulies@...> wrote: > I have set JAVA_HOME to a 1.5 java home. > > I have traced the mvn shell script to watch it get used. > > I have set <source/> and <target/> in the compiler plugin to 1.5. I > have checked the results with help:effective-pom. > > Nonetheless, code that calls the new > DocumentBuilderFactory.newInstance(<several args>) compiles and even > runs with no errors. > > I can't easily deinstall 1.6 from my mac. Has anyone else got a > suggestion what stupid mistake I'm making here? > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Can't seem to get rid of 1.6That doesn't help with bootclasspath inventory.
However, I've found my problem. On MacOS snow leopard, the So-called Java 1.5 home is actually java 1.6! On Wed, Nov 4, 2009 at 1:29 PM, Damon Jacobsen <dajacobsen@...> wrote: > My understanding is the by using that target attribute, maven is still using the default java installation to compile, but the byte code generated will be compatible with the java version specified. > > Damon > > -----Original Message----- > From: Benson Margulies [mailto:bimargulies@...] > Sent: Wednesday, November 04, 2009 10:24 AM > To: Maven Users List > Subject: Can't seem to get rid of 1.6 > > I have set JAVA_HOME to a 1.5 java home. > > I have traced the mvn shell script to watch it get used. > > I have set <source/> and <target/> in the compiler plugin to 1.5. I > have checked the results with help:effective-pom. > > Nonetheless, code that calls the new > DocumentBuilderFactory.newInstance(<several args>) compiles and even > runs with no errors. > > I can't easily deinstall 1.6 from my mac. Has anyone else got a > suggestion what stupid mistake I'm making here? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > _____________________________________________________________________ > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
RE: Can't seem to get rid of 1.6I was just about to ask that, if the 1.5 home was symlinked to 1.6.
You may want to consider the animal-sniffer plugin to detect and error on Java API incompatibles. The one from Codehaus mojos should be out shortly, in the mean time Kohsuke's is working for me. -----Original Message----- From: Benson Margulies [mailto:bimargulies@...] Sent: Wednesday, November 04, 2009 1:37 PM To: Maven Users List Subject: Re: Can't seem to get rid of 1.6 That doesn't help with bootclasspath inventory. However, I've found my problem. On MacOS snow leopard, the So-called Java 1.5 home is actually java 1.6! On Wed, Nov 4, 2009 at 1:29 PM, Damon Jacobsen <dajacobsen@...> wrote: > My understanding is the by using that target attribute, maven is still using the default java installation to compile, but the byte code generated will be compatible with the java version specified. > > Damon > > -----Original Message----- > From: Benson Margulies [mailto:bimargulies@...] > Sent: Wednesday, November 04, 2009 10:24 AM > To: Maven Users List > Subject: Can't seem to get rid of 1.6 > > I have set JAVA_HOME to a 1.5 java home. > > I have traced the mvn shell script to watch it get used. > > I have set <source/> and <target/> in the compiler plugin to 1.5. I > have checked the results with help:effective-pom. > > Nonetheless, code that calls the new > DocumentBuilderFactory.newInstance(<several args>) compiles and even > runs with no errors. > > I can't easily deinstall 1.6 from my mac. Has anyone else got a > suggestion what stupid mistake I'm making here? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > _____________________________________________________________________ > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... ------------------------------------------------------------------------------------------------------------------- CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain confidential and proprietary information of Alcatel-Lucent and/or its affiliated entities. Access by the intended recipient only is authorized. Any liability arising from any party acting, or refraining from acting, on any information contained in this e-mail is hereby excluded. If you are not the intended recipient, please notify the sender immediately, destroy the original transmission and its attachments and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Copyright in this e-mail and any attachments belongs to Alcatel-Lucent and/or its affiliated entities. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Can't seem to get rid of 1.6Sent from my [rhymes with tryPod] ;-) On 4 Nov 2009, at 18:51, "Jamie Whitehouse" <Jamie.Whitehouse@... > wrote: > I was just about to ask that, if the 1.5 home was symlinked to 1.6. > > You may want to consider the animal-sniffer plugin to detect and error > on Java API incompatibles. The one from Codehaus mojos should be out > shortly, just polishing off the documentation. should be ready soon > in the mean time Kohsuke's is working for me. > > -----Original Message----- > From: Benson Margulies [mailto:bimargulies@...] > Sent: Wednesday, November 04, 2009 1:37 PM > To: Maven Users List > Subject: Re: Can't seem to get rid of 1.6 > > That doesn't help with bootclasspath inventory. > > However, I've found my problem. On MacOS snow leopard, the So-called > Java 1.5 home is actually java 1.6! > > > On Wed, Nov 4, 2009 at 1:29 PM, Damon Jacobsen > <dajacobsen@...> wrote: >> My understanding is the by using that target attribute, maven is >> still > using the default java installation to compile, but the byte code > generated will be compatible with the java version specified. >> >> Damon >> >> -----Original Message----- >> From: Benson Margulies [mailto:bimargulies@...] >> Sent: Wednesday, November 04, 2009 10:24 AM >> To: Maven Users List >> Subject: Can't seem to get rid of 1.6 >> >> I have set JAVA_HOME to a 1.5 java home. >> >> I have traced the mvn shell script to watch it get used. >> >> I have set <source/> and <target/> in the compiler plugin to 1.5. I >> have checked the results with help:effective-pom. >> >> Nonetheless, code that calls the new >> DocumentBuilderFactory.newInstance(<several args>) compiles and even >> runs with no errors. >> >> I can't easily deinstall 1.6 from my mac. Has anyone else got a >> suggestion what stupid mistake I'm making here? >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@... >> For additional commands, e-mail: users-help@... >> >> >> ______________________________________________________________________ >> This email has been scanned by the MessageLabs Email Security System. >> For more information please visit http://www.messagelabs.com/email >> _____________________________________________________________________ >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > > > > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > --- > ---------------------------------------------------------------------- > CONFIDENTIALITY NOTICE: This e-mail and any files attached may > contain confidential and proprietary information of Alcatel-Lucent > and/or its affiliated entities. Access by the intended recipient > only is authorized. Any liability arising from any party acting, or > refraining from acting, on any information contained in this e-mail > is hereby excluded. If you are not the intended recipient, please > notify the sender immediately, destroy the original transmission and > its attachments and do not disclose the contents to any other > person, use it for any purpose, or store or copy the information in > any medium. Copyright in this e-mail and any attachments belongs to > Alcatel-Lucent and/or its affiliated entities. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
| Free embeddable forum powered by Nabble | Forum Help |