Issue
I can deploy to an absolute directory:
<distributionManagement>
<repository>
<id>absolute directory</id>
<url>file:///home/tukushan/workspace/omcutil/repo</url>
</repository>
</distributionManagement>
But how do I deploy to a directory relative to my project's directory?
Solution
A relative directory can be specified when using the -DaltDeploymentRepository
parameter, e.g.:
mvn deploy -DaltDeploymentRepository=snapshot-repo::default::file:../../my-local-snapshots-dir
The file URL is relative to the directory in which mvn
is run.
See here for more info on the altDeploymentRepository
parameter.
Answered By - tekumara
Answer Checked By - Mildred Charles (JavaFixing Admin)