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

file size check on pom.xml (or thing specified by --file opt) should only apply to regular files (patch attached)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: Command Line, General
    • Labels:
      None
    • Flags:
      Patch

      Description

      The file size check in maven-core/.../org/apache/maven/DefaultMaven.java is applied too aggressively. In particular, it should only be applied to regular files; when reading from a unix named pipe (probably other platform-specific devices, too) we may not be able to determine the file size prior to reading the data.

      The real-world motiviation from this is the attached 'mvn-get-plugin' bash script, which wants to pipe a dummy pom.xml file to mvn on stdin (by specifying /dev/stdin as the argument to the mvn --file command line option).

      Once I submit this issue and have the issue number, I'll attach two patches, one against the maven svn trunk, and one against the maven-2.0.4 tag.

        Attachments

        1. MNG-2399-maven-core-2.0.4.patch
          0.9 kB
          Denis Anisimov
        2. MNG-2399-maven-core-trunk.patch
          0.9 kB
          Denis Anisimov
        3. mvn-get-plugin
          10 kB
          Denis Anisimov

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ads Denis Anisimov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: