You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Emmanuel Venisse (JIRA)" <ji...@codehaus.org> on 2007/05/22 17:27:58 UTC
[jira] Closed: (MRELEASE-234) RewritePomsForReleasePhase requires
JDK 5.0
[ http://jira.codehaus.org/browse/MRELEASE-234?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Venisse closed MRELEASE-234.
-------------------------------------
Assignee: Emmanuel Venisse
Resolution: Fixed
Fix Version/s: 2.0-beta-6
> RewritePomsForReleasePhase requires JDK 5.0
> -------------------------------------------
>
> Key: MRELEASE-234
> URL: http://jira.codehaus.org/browse/MRELEASE-234
> Project: Maven 2.x Release Plugin
> Issue Type: Bug
> Affects Versions: 2.0-beta-5
> Environment: JDK1.4
> Reporter: William Ferguson
> Assignee: Emmanuel Venisse
> Fix For: 2.0-beta-6
>
>
> If JAVA_HOME is set to JDK-1.4 you cannot build the maven-release-manager as the RewritePomsForReleasePhase class uses 2 JDK-5 APIs on lines
> 254 urlPath.contains(CharSequence)
> 260 urlPath.replace(CharSequence, CharSequence)
> If JDK-5 is required for the build environment then the POM needs to be modified to
> <artifactId>maven-compiler-plugin</artifactId>
> <configuration>
> <source>1.5</source>
> <target>1.4</target>
> </configuration>
> </plugin>
> Note that specifying <source>1.4</source> does not seem to ensure that only 1.4 APIs are used.
> Just try setting JAVA_HOME to JDK-1.4 and build
> Alternatively RewritePomsForReleasePhase should not used JDK-1.4 APIs.
--
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