Deploying a war file to a remote maven repository on google.code

You need to edit your settings.xml file in your user directory e.g. /Users/myUsername/.M2 to have a server element like so:


The id element content indicates which server you wish these username and passwords to apply to. This corresponds to the id element in the following xml in your pom.xml file for the project which is in the  needs to be put in the <distributionManagement> element. Also make sure you have the https note the S in the front of the url:



<name>Repository Name</name>



Then we just need to run the maven deploy command from the command line in the directory where your pom resides:

mvn deploy -e

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: