Am trying to push my local code to remote Server, In my pom.xml I gave HostName,PortNumber, username and password (dynamic ) from maven command line arguments, in that time am getting error Un-authorized to hit the server, If i gave hardcode username and password in my pom.xml i can able to deploy my code in remote server, How i can get rid of Hardcoded value and pass as arguments in Command line.
We set up the bamboo job to deploy our code in remote server, still bamboo is throwing Un-authorized error.
Command am using : mvn clean install -PautoInstallDevPackage -U -Daem.host=HostName -Daem.port=PortNumber -DUserName=UserName -Dpassword=Password (Created profile for autoInstallDevPackage in my parent pom.xml)
Suggestions are most welcome.