Supposing my maven project is located in /some/location/project
and my current location is /another/location/
how can I run maven build without changing to project location cd /some/location/project
?
You can use the parameter -f
(or --file
) and specify the path to your pom file, e.g. mvn -f /path/to/pom.xml
This runs maven "as if" it were in /path/to
for the working directory.
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句