[ 
http://jira.codehaus.org/browse/MGROOVY-182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Dillon closed MGROOVY-182.
--------------------------------

    Resolution: Fixed

> Enforcer plugin in main project POM too strict - won't allow build with Java 6
> ------------------------------------------------------------------------------
>
>                 Key: MGROOVY-182
>                 URL: http://jira.codehaus.org/browse/MGROOVY-182
>             Project: GMaven
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 1.0-rc-4
>         Environment: -
>            Reporter: Jason Smith
>            Assignee: Jason Dillon
>             Fix For: 1.0-rc-4
>
>
> This is a configuration issue in the main GMaven project POM.
> The enforcer plugin sure looks like it would allow you to build with with 
> Java 6, but "1.6" is taken to mean "less than 1.6".  I've changed this 
> locally so I can build with Java 6, and it works.  I have included a 
> suggested fix below.  I don't understand the enforcer plugin all that well, 
> so there may be a more elegant fix.  But this definitely fixes the problem I 
> see.
> [INFO] [enforcer:enforce {execution: default}]
> [WARNING] Rule 0: org.apache.maven.plugin.enforcer.RequireJavaVersion failed 
> with message: Detected JDK Version: 1.6.0-11 is not in the allowed range 
> [1.4,1.6). 
> Suggested patch (remove asterisks!!!):
> <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-enforcer-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>validate</phase>
>                         <goals>
>                             <goal>enforce</goal>
>                         </goals>
>                         <configuration>
>                             <rules>
>                                 <requireJavaVersion>
>                                     <version>[1.4,***1.6.0-99***)</version>
>                                 </requireJavaVersion>
> ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to