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

[regression] Class folder system dependency doesn't work anymore

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.1.0-M1
    • None
    • None
    • Any

    Description

      My project use system dependencies pointing to class folders.

      <dependency>
      <groupId>class-folder</groupId>
      <artifactId>class-folder</artifactId>
      <version>N</version>
      <scope>system</scope>
      <systemPath>C:/appli/classes</systemPath>
      </dependency>

      Such class folders dependencies worked fine with maven 2.0.7
      They are needed by my project as it relies on a legacy application not packaged into a jar file.

      Root cause is located in file DefaultArtifactResolver.java:

      if ( !systemFile.isFile() )

      { throw new ArtifactNotFoundException( "System artifact: " + artifact + " is not a file: " + systemFile, artifact ); }

      Attachments

        1. patch-MNG-3768-distribution.txt
          2 kB
          François Loison
        2. mng-3768.zip
          2 kB
          Benjamin Bentmann
        3. MNG-3768.patch.txt
          1.0 kB
          François Loison
        4. mng-3288.zip
          3 kB
          Benjamin Bentmann

        Issue Links

          Activity

            People

              Unassigned Unassigned
              francois.loison François Loison
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: