I am forced by Maven to specify a url under tag insde POM.xml file
<distributionManagement>
<repository>
<id>nexus</id>
<name>Nexus Staging Repo</name>
<url>scp://home/maven2/html</url>
</repository>
</distributionManagement>
I am running mvn deploy to deploy the war file under Tomcat Web-apps
I don’t have any domain , what should be the default to be provided here , and the username and the password inside , so that maven deploys my war into Tomcat .
The deploy phase in the maven lifecycle refers to deploying artifacts to a maven repository, not deploying artifacts to an application server. If you want to deploy your webapp I suggest you have a look at the maven cargo plugin.
Edit: Just to be extra clear: Deploying webapps to tomcat is not what “mvn deploy” is supposed to do.