[ 
https://issues.apache.org/jira/browse/MNG-8142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17852433#comment-17852433
 ] 

ASF GitHub Bot commented on MNG-8142:
-------------------------------------

cstamas commented on PR #1557:
URL: https://github.com/apache/maven/pull/1557#issuecomment-2149764735

   The IT w/ #1555 failed due this output (in debug, as IT uses Maven with -X):
   ```
   [WARNING] The POM for org.apache.commons:commons-lang3:jar:3.8.1 is invalid, 
transitive dependencies (if any) will not be available: 3 problems were 
encountered while building the effective model for 
org.apache.commons:commons-lang3:3.8.1
   [ERROR] Failed to determine activation for profile java9+ @ 
   [ERROR] Failed to determine activation for profile java11+ @ 
   [ERROR] Failed to determine activation for profile jdk7-plugin-fix-version @ 
org.apache.commons:commons-parent:47
   ```
   
   And these ERRORS were actually due NumberFormatEx caused by the fact that IT 
MNG-3746 uses on purpose `-Djava.version=cli` to test is profile activation 
used properties overridden or not.




> If JDK profile activator gets "invalid" JDK version for whatever reason, it 
> chokes but does not tell why
> --------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-8142
>                 URL: https://issues.apache.org/jira/browse/MNG-8142
>             Project: Maven
>          Issue Type: Bug
>          Components: Core
>            Reporter: Tamas Cservenak
>            Assignee: Tamas Cservenak
>            Priority: Major
>             Fix For: 3.9.8, 4.0.0-beta-4
>
>
> The JDK profile activator uses property {{java.version}} to determine is 
> profile active or not, but if you look at MNG-3746 you can see that Maven 
> _allows overriding that property_ by user, but also, today some "weird 
> formatted" version may pop up in the wild.
> The JDK profile activator is not prepared for these cases, and will just 
> throw (NumberFormatEx), without telling why it did belly up.
> Improve the message why it throw.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to