unix - Which maven settings.xml file will sudo use? -
i have shell script runs maven build task. when script run, run sudo user. however, behind proxy , hence need specify proxy details within ~/.m2/settings.xml file. in main user's home directory.
what i've found when script run sudo, it's not picking settings.xml file other user's ~/.m2/settings.xml file.
how can specify these settings sudo/root user? should set settings.xml within root user's home directory well?
if users on machine need proxy settings can add together them global settings.xml
file.
this can found @ $m2_home/conf/settings.xml
.
maven unix
No comments:
Post a Comment