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:

<server>
<id>repoMydasTemplate</id>
<username>warren.jonathan@gmail.com</username>
<password>mygooglecodeautogeneratedpasswordhere</password>
</server>
</servers>

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:

<repository>

<id>repoMydasTemplate</id>

<name>Repository Name</name>

<url>https://mydas.googlecode.com/svn/repository</url&gt;

</repository>

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

mvn deploy -e

Advertisements
  1. No trackbacks yet.

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: