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

Unit tests fail on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5
    • 2.6
    • None
    • None
    • Windows 7, x86_64
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: