Skip to content

Instantly share code, notes, and snippets.

@collinvandyck
Last active December 22, 2015 08:19
Show Gist options
  • Select an option

  • Save collinvandyck/6443958 to your computer and use it in GitHub Desktop.

Select an option

Save collinvandyck/6443958 to your computer and use it in GitHub Desktop.
This is how you'd go about installing the latest snapshot version Note that this only works producing dev builds locally.
/tmp % git clone git@github.com:librato/metrics-librato.git
Cloning into 'metrics-librato'...
remote: Counting objects: 466, done.
remote: Compressing objects: 100% (184/184), done.
remote: Total 466 (delta 155), reused 440 (delta 131)
Receiving objects: 100% (466/466), 63.89 KiB | 0 bytes/s, done.
Resolving deltas: 100% (155/155), done.
Checking connectivity... done
/tmp % cd metrics-librato/
/tmp/metrics-librato
/tmp/metrics-librato [master*]% mvn install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Metrics Librato Support 2.2.1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ metrics-librato ---
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ metrics-librato ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /private/tmp/metrics-librato/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ metrics-librato ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 7 source files to /private/tmp/metrics-librato/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ metrics-librato ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ metrics-librato ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to /private/tmp/metrics-librato/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ metrics-librato ---
[INFO] Surefire report directory: /private/tmp/metrics-librato/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.librato.metrics.LibratoUtilTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 sec
Running com.librato.metrics.MetricsLibratoBatchTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.34 sec
Running com.librato.metrics.VersionUtilTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec
Results :
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0
[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ metrics-librato ---
[INFO] Building jar: /private/tmp/metrics-librato/target/metrics-librato-2.2.1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ metrics-librato ---
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.pom (2 KB at 1.8 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.7/plexus-components-1.1.7.pom
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/1.1.7/plexus-components-1.1.7.pom (5 KB at 108.0 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar
Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-digest/1.0/plexus-digest-1.0.jar (12 KB at 269.3 KB/sec)
[INFO] Installing /private/tmp/metrics-librato/target/metrics-librato-2.2.1.0-SNAPSHOT.jar to /Users/cvandyck/.m2/repository/com/librato/metrics/metrics-librato/2.2.1.0-SNAPSHOT/metrics-librato-2.2.1.0-SNAPSHOT.jar
[INFO] Installing /private/tmp/metrics-librato/pom.xml to /Users/cvandyck/.m2/repository/com/librato/metrics/metrics-librato/2.2.1.0-SNAPSHOT/metrics-librato-2.2.1.0-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.343s
[INFO] Finished at: Wed Sep 04 15:55:47 PDT 2013
[INFO] Final Memory: 15M/81M
[INFO] ------------------------------------------------------------------------
/tmp/metrics-librato [master*]% ls ~/.m2/repository/com/librato/metrics/metrics-librato/
2.2.1.0-SNAPSHOT maven-metadata-local.xml
/tmp/metrics-librato [master*]%
cd /tmp
git clone git@github.com:librato/metrics-librato.git
cd metrics-librato
mvn install
<dependency>
<groupId>com.librato.metrics</groupId>
<artifactId>librato-metrics</artifactId>
<version>2.2.1.0-SNAPSHOT</version>
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment