You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2010/01/05 16:45:55 UTC
[jira] Closed: (MNG-4518) Profile activation based on JRE version
misbehaves if java.version has build number
[ http://jira.codehaus.org/browse/MNG-4518?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4518.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0-alpha-6
Assignee: Benjamin Bentmann
Fixed in [r896102|http://svn.apache.org/viewvc?view=revision&revision=896102].
> Profile activation based on JRE version misbehaves if java.version has build number
> -----------------------------------------------------------------------------------
>
> Key: MNG-4518
> URL: http://jira.codehaus.org/browse/MNG-4518
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: Profiles
> Affects Versions: 2.2.1
> Reporter: Benjamin Bentmann
> Assignee: Benjamin Bentmann
> Fix For: 3.0-alpha-6
>
>
> For this POM snippet
> {code:xml}
> <profiles>
> <profile>
> <id>test</id>
> <activation>
> <jdk>[1.6,)</jdk>
> </activation>
> </profile>
> </profiles>
> {code}
> running "mvn help:active-profiles -V" delivers:
> {noformat}
> >mvn help:active-profiles -V
> Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
> Java version: 1.6.0_07
> Java home: D:\Programme\Java\jdk-1.6.0_07\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'help'.
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Maven Integration Test :: MNG-
> [INFO] task-segment: [help:active-profiles] (aggregator-style)
> [INFO] ------------------------------------------------------------------------
> [INFO] [help:active-profiles {execution: default-cli}]
> [INFO]
> Active Profiles for Project 'org.apache.maven.its.mng:test:jar:0.1':
> There are no active profiles.
> {noformat}
> This is due to the version 1.6.0_07 which when parsed with Maven version rules is considered older than 1.6.
--
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