Search code examples
javawindowsmavenjava-16

Maven/Java Issues with Windows Filepath


New to Java and Maven here. I am having problems successfully running mvn install on my Windows setup on JDK 16. The process always fails the verification step. The fail-safe folder from Maven shows the following error:

Caused by: java.nio.file.InvalidPathException: Illegal char <:> at index 2:  D:\swigwin-4.0.1

The process works fine on Mac though. I have already tried changing the encodings, doing a clean install and etc, to no avail.

Any idea how to get around this issue?


Solution

  • The issue was using cmd.exe as the terminal in IntelliJ, switching to a proper unix based terminal like Git Bash solved the issue for me. The comment about was right.