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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.0.3
    • 3.0.4
    • Command Line
    • None

    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.

      Attachments

        Issue Links

          Activity

            People

              bentmann Benjamin Bentmann
              bentmann Benjamin Bentmann
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: