To access the Movebank Archiva Repository, you need an account on the archiva system and need to configure your maven settings file like this:

In ~\.m2\settings.xml add the repositories:

<servers>
  <server>
    <id>movebankInternalSnapshot</id>
    <username>username</username>
    <password>password</password>
  </server>
  <server>
    <id>movebankThirdParty</id>
    <username>username</username>
    <password>password</password>
  </server>
</servers>

Deploying File on Archiva

If you want to deploy libraries that are not available over online maven repositories, you can deploy them to the internal Disy Archiva repository. The shell command is:

mvn deploy:deploy-file -DgroupId=group.id \
-DartifactId=artifactName \
-Dversion=1.0 \
-Dpackaging=jar \
-Dfile=path.to.local.file.jar \
-Durl=http://mavenrepo.disy.inf.uni-konstanz.de/repository/disyThirdParty \
-DrepositoryId=disyThirdParty
-DuniqueVersion=false</pre>

It should be possible to deploy the source-files along with the library, the trick is to specify a classifier “sources”, but apparently its not working at the moment. See:
http://maven.apache.org/plugins/maven-deploy-plugin/examples/deploying-with-classifiers.html
http://osdir.com/ml/users-archiva-apache/2009-06/msg00029.html

Example of a Deployment:

mvn deploy:deploy-file -DgroupId=net.orcades.spring \
-DartifactId=orcades-spring-gwt-security \
-Dversion=1.4.0-SNAPSHOT \
-Dpackaging=jar \
-Dfile=orcades-spring-gwt-security-1.4.0-SNAPSHOT.jar \
-Durl=http://mavenrepo.disy.inf.uni-konstanz.de/repository/disyThirdParty \
-DrepositoryId=disyThirdParty \
-DuniqueVersion=false

Debugging with Maven-Commandoline & Eclipse

1. Start maven goal with debug-mode

mvnDebug -DforkMode=never test

2. Maven should wait on port 8000

3. Set your breakpoint

4. In Eclipse, click on “Debug” -> “Remote Java Application” and start

5. Maven should start automatically