Open ${user.home}/.m2/settings.xml with a text editor.
If you are using a Tomcat 7 standalone server do the following: If you forgot either the manager-script username and/or password, you can find the username and password in the ${CATALINA_HOME}/conf/tomcat-users.xml file.
In the settings.xml file, find:
Code Block
<tomcat.username>script</tomcat.username>
and replace script with the username for the Tomcat manager-script user that you configured when you installed Tomcat.
In the settings.xml file, find:
Code Block
<tomcat.password>XXXXXXXX</tomcat.password>
and replace XXXXXXXX with the password for the Tomcat manager-script user that you configured when you installed Tomcat.
indent
When you are satisfied that everything is correct, *save* your changes.
If you are using an OC4J standalone server do the following: