Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0-alpha-5
-
Fix Version/s: 3.0-alpha-6
-
Component/s: Profiles
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
Description
The POM snippet
<profiles> <profile> <id>test</id> <activation> <jdk>[1.5,1.6)</jdk> </activation> </profile> </profiles>
yields
[ERROR] The project org.apache.maven.its.mng:test:0.1 has 1 error
[ERROR] Failed to determine activation for profile test: For input string: "0_07"
java.lang.NumberFormatException: For input string: "0_07"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:456)
at java.lang.Integer.parseInt(Integer.java:497)
at o.a.m.model.profile.activation.JdkVersionProfileActivator.getRelationOrder(JdkVersionProfileActivator.java:124)
at o.a.m.model.profile.activation.JdkVersionProfileActivator.isInRange(JdkVersionProfileActivator.java:96)
at o.a.m.model.profile.activation.JdkVersionProfileActivator.isActive(JdkVersionProfileActivator.java:70)
when run with JDK 1.6.0_07 in this case.
Issue Links
- is related to
-
MNG-1957
<jdk></jdk> clause in the activation section has to provide more complex expressions.
-
Activity
Benjamin Bentmann
made changes -
Benjamin Bentmann
made changes -
| Assignee | Benjamin Bentmann [ bentmann ] | |
| Fix Version/s | 3.0-alpha-6 [ 15996 ] | |
| Status | Open [ 1 ] | Closed [ 6 ] |
| Resolution | Fixed [ 1 ] |