In our setting.xml file we have the following:
deploymentRepo
repouser<
Yes, you can do this in two ways:
settings.xml
something like this:
deploymentRepo
${server.username}
${server.password}
And in command line, pass these variables in this way:
mvn clean package -Dserver.username=yourusername -Dserver.password=yourpassword
export SERVER_USERNAME=yourusername
) SERVER_USERNAME
and SERVER_PASSWORD
variables, you can use like this:
deploymentRepo
${env.SERVER_USERNAME}
${env.SERVER_PASSWORD}
For more information about propeties, see the reference documentation.