Metrics/Maven
From MozillaWiki
< Metrics
The metrics maven repo:
Metrics has a sort of makeshift maven repo for internal projects, which is hosted on github. When we are comfortable to releasing to a wider audience, we should eventually publish our artifacts on maven-central.
Reference the repository
To use the maven repo in a project, include the repo in your pom.xml:
<repositories> ... <repository> <id>mozilla-metrics-snapshots</id> <url>http://mozilla-metrics.github.com/maven2/snapshots</url> </repository> </repositories>
Publish a snapshot artifact
You need push access to the mozilla-metrics repository named mozilla-metrics.github.com.
> git clone git@github.com:mozilla-metrics/mozilla-metrics.github.com.git > cd some-project > mvn -DaltDeploymentRepository=snapshot-repo::default::file:../mozilla-metrics.github.com/maven2/snapshots/ clean deploy > cd ../mozilla-metrics.github.com > git add maven2 > git ci -m "Updated snapshot of (the project name/version)." > git push origin master