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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With