You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by ARausch <ac...@googlemail.com> on 2009/04/03 13:55:17 UTC

Re: [Trinidad] JDK build issue

Hi all,

I'm struggling here a bit. I'm trying to build Trinidad and am using Maven
for the first
time. I get exactly the same error messages as Matt. I've tried using a
selection of JDK
from 1.5.06 to 1.5.17 and always get the same messages. 

Do I perhaps have to make a "profile" entry in the settings.xml of maven? 

Thanks
Achim



Matt Cooper-2 wrote:
> 
> Hi all,
> 
> I've noticed lately that in order to build Trinidad, I have to use jdk6 on
> the command line (though the settings.xml uses jdk5).
> 
> My ~/.m2/settings.xml has the following:
> 
>   <profiles>
>     <profile>
>       <id>java5.home</id>
>       <activation>
>         <activeByDefault>true</activeByDefault>
>       </activation>
>       <properties>
> 
> <jdk5.home>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home</jdk5.home>
>       </properties>
>     </profile>
>   </profiles>
> 
> If I try to build using a jdk5 JAVA_HOME on the command line, I get these
> test errors:
> 
> Tests in error:
> 
> initializationError0(org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitTest)
> 
> testEscapeInQuoteJS(org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafUtilsTest)
> 
> testDoubleEscapeInQuoteJS(org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafUtilsTest)
> 
>  
> JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
> 
> However, if I build using a jdk6 JAVA_HOME (and keep the jdk5 setting in
> the
> settings.xml file), it builds fine.
> 
>  
> JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
> 
> Has anyone else noticed that Trinidad requires this strange build quirk
> (if
> so what OS are you using)?
> 
> It might be a Mac-specific issue or perhaps something else strange on my
> machine.
> 
> Thank you,
> Matt
> 
> 

-- 
View this message in context: http://www.nabble.com/-Trinidad--JDK-build-issue-tp22446042p22866964.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.


Re: [Trinidad] JDK build issue

Posted by Simon Kitching <sk...@apache.org>.
The problem shown below is that the unit tests are *compiling* on
java1.5, but failing when run. It's unfortunately not unusual for unit
tests to pass on one version of java, and fail on others; java does
change behaviour between releases (eg order of iteration through maps)
and sometimes tests are sensitive to these things when the actual
program is not.

Unless you really want to run the unit tests with java1.5, just do
  mvn -DskipTests ....
to skip the unit tests when building.

Regards,
Simon


ARausch schrieb:
> Hi all,
> 
> I'm struggling here a bit. I'm trying to build Trinidad and am using Maven
> for the first
> time. I get exactly the same error messages as Matt. I've tried using a
> selection of JDK
> from 1.5.06 to 1.5.17 and always get the same messages. 
> 
> Do I perhaps have to make a "profile" entry in the settings.xml of maven? 
> 
> Thanks
> Achim
> 
> 
> 
> Matt Cooper-2 wrote:
>> Hi all,
>>
>> I've noticed lately that in order to build Trinidad, I have to use jdk6 on
>> the command line (though the settings.xml uses jdk5).
>>
>> My ~/.m2/settings.xml has the following:
>>
>>   <profiles>
>>     <profile>
>>       <id>java5.home</id>
>>       <activation>
>>         <activeByDefault>true</activeByDefault>
>>       </activation>
>>       <properties>
>>
>> <jdk5.home>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home</jdk5.home>
>>       </properties>
>>     </profile>
>>   </profiles>
>>
>> If I try to build using a jdk5 JAVA_HOME on the command line, I get these
>> test errors:
>>
>> Tests in error:
>>
>> initializationError0(org.apache.myfaces.trinidadinternal.renderkit.CoreRenderKitTest)
>>
>> testEscapeInQuoteJS(org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafUtilsTest)
>>
>> testDoubleEscapeInQuoteJS(org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafUtilsTest)
>>
>>  
>> JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
>>
>> However, if I build using a jdk6 JAVA_HOME (and keep the jdk5 setting in
>> the
>> settings.xml file), it builds fine.
>>
>>  
>> JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
>>
>> Has anyone else noticed that Trinidad requires this strange build quirk
>> (if
>> so what OS are you using)?
>>
>> It might be a Mac-specific issue or perhaps something else strange on my
>> machine.
>>
>> Thank you,
>> Matt
>>
>>
>