[jboss-dev] Enforcing JDK6 in AS trunk

Ian Springer ian.springer at redhat.com
Wed Sep 9 11:58:52 EDT 2009


Building AS trunk w/ JDK7 also fails for me 
(http://wwwapps.rdu.redhat.com/w3xpastebin/pastebin.php?show=13872). If 
this is expected, we should also disallow JDK7, e.g.:

<requireJavaVersion>
<version>[1.5,1.7)</version> <!-- 1.5.x, 1.6.x -->
</requireJavaVersion>

On 9/9/2009 11:43 AM, Jaikiran Pai wrote:
> Stan Silvert wrote:
>    
>> Is it possible to require a certain revision (or higher) of 1.6?  I
>> can remember that the build wouldn't work with some older revisions of
>> 1.6.
>>
>> Stan
>>      
> That should be possible
> http://maven.apache.org/enforcer/enforcer-rules/requireJavaVersion.html
>
>
> -Jaikiran
>
>    
>> Jaikiran Pai wrote:
>>      
>>> Resending, since the previous mail never made it to the list.
>>>
>>> -Jaikiran
>>>
>>> Jaikiran Pai wrote:
>>>
>>>        
>>>> Hello everyone,
>>>>
>>>> Half way while building a clean AS trunk today, the build failed with
>>>> incompatible class versions. With the recent changes to AS trunk, JDK6
>>>> is now mandatory for the build to complete successfully. If no one has
>>>> any objections, i'll update the parent pom.xml in AS trunk to enforce
>>>> this through the enforcer plugin:
>>>>
>>>>
>>>> Index: pom.xml
>>>> ===================================================================
>>>> --- pom.xml     (revision 93223)
>>>> +++ pom.xml     (working copy)
>>>> @@ -609,7 +609,7 @@
>>>>                        <version>2.0.9</version>
>>>>                      </requireMavenVersion>
>>>>                      <requireJavaVersion>
>>>> -<version>1.5</version>
>>>> +<version>1.6</version>
>>>>                      </requireJavaVersion>
>>>> </rules>
>>>>                  </configuration>
>>>>
>>>>
>>>> regards,
>>>> -Jaikiran
>>>>
>>>>
>>>>          
>>> _______________________________________________
>>> jboss-development mailing list
>>> jboss-development at lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/jboss-development
>>>
>>>        
>>      
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development
>    


-- 
Ian Springer
Sr. Software Developer
JBoss Operations Network
Red Hat
ian.springer at redhat.com




More information about the jboss-development mailing list