Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-353

Unit tests fail on Windows

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 2.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Windows 7, x86_64
    • Flags:
      Patch

      Description

      The TestGetMojo unit test of this plugin fail for me on Windows with

      org.apache.maven.plugin.MojoExecutionException: Couldn't download artifact: Unable to download the artifact from any repository

      The root cause is an IOException at AbstractWagon line 203:

      java.io.FileNotFoundException: [snip]maven-dependency-plugin\target\unit-tests\markers\org.apache.maven:maven-model:jar:2.0.9.tmp (The filename, directory name, or volume label syntax is incorrect)

      The StubArtifactRepository is trying to create a file with a colon in it, and Windows doesn't like that.

      See attached patch for a possible fix. It might be better to fix StubArtifactRepository in the maven-plugin-testing-harness but I'm a little nervous of breaking other plugin builds.

        Attachments

        1. build-windows.patch
          8 kB
          Art O Cathain

          Activity

            People

            • Assignee:
              rfscholte Robert Scholte
              Reporter:
              artbristol Art O Cathain
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: