Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-8142

If JDK profile activator gets "invalid" JDK version for whatever reason, it chokes but does not tell why

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.9.8, 4.0.0-beta-4, 4.0.0
    • Core
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              cstamas Tamas Cservenak
              cstamas Tamas Cservenak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: