Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Build fails on Windows: UNC path is missing sharename: /\fakeSMTP-2.1-SNAPSHOT.jar #65

Open
Taschi120 opened this issue Nov 12, 2017 · 2 comments

Comments

@Taschi120
Copy link

Taschi120 commented Nov 12, 2017

I'm trying to build FakeSMTP's docker image to use it for testing my web application. Sadly, the build fails with the following error:

[INFO] Copying C:\Users\Stephan\Documents\Programme\bulletin\FakeSMTP\target\fakeSMTP-2.1-SNAPSHOT.jar -> C:\Users\Stephan\Documents\Programme\bulletin\FakeSMTP\target\docker\fakeSMTP-2.1-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36.687 s
[INFO] Finished at: 2017-11-12T17:38:07+01:00
[INFO] Final Memory: 28M/377M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.3.2:build (default-cli) on project fakesmtp: Exception caught: UNC path is missing sharename: /\fakeSMTP-2.1-SNAPSHOT.jar -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

The maven command I ran was as follows:

E:\apache-maven-3.5.2\bin\mvn package docker:build -DskipTests

@Taschi120
Copy link
Author

Probably related to spotify/docker-maven-plugin#68, can maybe be fixed with a newer plugin version?

@Taschi120
Copy link
Author

Using docker build . instead of the maven target works fine, though, so I won't try and troubleshoot this further. tldr: no maven dev or maven plugin dev ever tests their stuff on Windows, apparently.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant