
mbari-maven-repository
mbari-maven-repository
Due to the upcoming Google Code shutdown this repository is now read-only. A copy of this repository has been cloned to GitHub.
This is a central maven repository for MBARI open source software projects. Jars in this repository are either produced by MBARI or used by MBARI projects.
Using Artifacts in this Repository
To use artifacts from this repository in your projects add the following to your pom.xml file
<repository>
<id>mbari-maven-repository</id>
<name>MBARI Maven Repository</name>
<url>https://mbari-maven-repository.googlecode.com/svn/repository/</url>
</repository>
If you're brave, you can also use the SNAPSHOT repository by adding the following to your pom.xml file
<repository>
<id>mbari-maven-snapshot-repository</id>
<name>MBARI Maven Snapshot Repository</name>
<url>https://mbari-maven-repository.googlecode.com/svn/snapshot-repository/</url>
</repository>
Browsing for Artifacts
You can browse for artifacts under the Source tab above.
Deploying Artifacts
To deploy to this repository, add the following to your pom.xml:
```
org.apache.maven.wagon
wagon-webdav
true mbari-maven-repository dav:https://mbari-maven-repository.googlecode.com/svn/repository true mbari-maven-snapshot-repository dav:https://mbari-maven-repository.googlecode.com/svn/snapshot-repository ```
Also add the following to your servers to your settings.xml file (most likely located at $HOME/.m2/settings.xml)
<settings
xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<servers>
<server>
<id>mbari-maven-repository</id>
<username>your-google-id</username>
<password>your-google-password</password>
<filePermissions>775</filePermissions>
<directoryPermissions>775</directoryPermissions>
</server>
<server>
<id>mbari-maven-snapshot-repository</id>
<username>your-google-id</username>
<password>your-google-password</password>
<filePermissions>775</filePermissions>
<directoryPermissions>775</directoryPermissions>
</server>
</servers>
</settings>
Deploying Artifacts from the Command Line
It's relatively simple to deploy single-jar artifacts via the command line to the repo. Refer to the documentation of the Maven Deploy Plugin for the nitty-gritty details. For reference, here's an example of the command used to deploy Sanselan to our repository:
mvn deploy:deploy-file \
-Durl=dav:https://mbari-maven-repository.googlecode.com/svn/repository \
-DrepositoryId=mbari-maven-repository \
-DgroupId=org.apache.commons \
-DartifactId=sanselan \
-Dpackaging=jar \
-Dfile=sanselan-0.97-incubator.jar \
-Dversion=0.97 \
-DgeneratePom=true