Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.5
-
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.