Maven
  1. Maven
  2. MNG-5158

Make loading of extensions from lib/ext more robust with regard to existence of ext directory

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.0.4
    • Component/s: Command Line
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      Description

      Someone who tries to delete or temporarily rename lib/ext will get rewarded with an error:

      java.io.FileNotFoundException: D:\apache-maven-3.0.3\bin\..\lib\ext
              at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.loadGlob(ConfigurationParser.java:336)
              at org.codehaus.plexus.classworlds.launcher.ConfigurationParser.parse(ConfigurationParser.java:247)
              at org.codehaus.plexus.classworlds.launcher.Configurator.configure(Configurator.java:135)
              at org.codehaus.plexus.classworlds.launcher.Launcher.configure(Launcher.java:132)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:405)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      

      Classworlds provides a means to handle a missing dir more gracefully which fits the idea of optional extensions better.

        Issue Links

          Activity

          Hide
          Benjamin Bentmann added a comment -

          Done in r1159520.

          Show
          Benjamin Bentmann added a comment - Done in r1159520 .

            People

            • Assignee:
              Benjamin Bentmann
              Reporter:
              Benjamin Bentmann
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: