I have a parent pom written by someone else, it is used for building and running a docker image locally. When I am trying to build using parent pom.xml, I am getting following error '~/.m2' cannot be relativized, cannot resolve arbitrary user home paths.
I think the error is with bind volumes to the image. This is how it is defined in parent pom.xml
<volumes>
<bind>
<volume>${session.executionRootDirectory}:${session.executionRootDirectory}</volume>
<!-- Mounts the Maven repository so that the Docker container doesn't have to re-download dependencies. -->
<volume>~/.m2:/root/.m2</volume>
</bind>
</volumes>
The above project is building fine on mac os, and I am using a windows machine. I installed docker for windows
and read the fabric8 documentation, to know how to bind volumes to your image but could not find any example related to my issue.