From 9a7170ebb434dda3249b8199ffde5851531907f4 Mon Sep 17 00:00:00 2001 From: Max Gensthaler Date: Thu, 18 Aug 2011 16:41:51 +0200 Subject: [PATCH 1/2] preparing directory structure to mavenize --- build.xml | 76 +++++++++---------- .../metrics/collectd/CollectdContext.java | 0 .../hadoop-collectd-types.properties | 0 3 files changed, 38 insertions(+), 38 deletions(-) rename src/{core => main/java}/org/apache/hadoop/metrics/collectd/CollectdContext.java (100%) rename hadoop-collectd-types.properties => src/main/resources/hadoop-collectd-types.properties (100%) diff --git a/build.xml b/build.xml index 94a04bd..b0bdc43 100644 --- a/build.xml +++ b/build.xml @@ -1,45 +1,45 @@ - + - + - + - - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/core/org/apache/hadoop/metrics/collectd/CollectdContext.java b/src/main/java/org/apache/hadoop/metrics/collectd/CollectdContext.java similarity index 100% rename from src/core/org/apache/hadoop/metrics/collectd/CollectdContext.java rename to src/main/java/org/apache/hadoop/metrics/collectd/CollectdContext.java diff --git a/hadoop-collectd-types.properties b/src/main/resources/hadoop-collectd-types.properties similarity index 100% rename from hadoop-collectd-types.properties rename to src/main/resources/hadoop-collectd-types.properties From ce3545891aef8cd158ad3c25c06731e40f6aa3d2 Mon Sep 17 00:00:00 2001 From: Max Gensthaler Date: Thu, 18 Aug 2011 20:35:27 +0200 Subject: [PATCH 2/2] mavenize --- .gitignore | 1 + pom.xml | 130 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 131 insertions(+) create mode 100644 pom.xml diff --git a/.gitignore b/.gitignore index 476be86..85e6099 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .settings .classpath .project +target *~ diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..c24eb73 --- /dev/null +++ b/pom.xml @@ -0,0 +1,130 @@ + + 4.0.0 + + com.hyperic.hypcomm + hadoop-collectd + 0.0.1-SNAPSHOT + + hadoop-collectd + A Hadoop metrics.spi.MetricContext for sending metric data to collectd. + https://github.com/hyperic/hadoop-collectd + + + UTF-8 + 1.6 + 1.6 + + 0.20.2-cdh3u1 + + + + + Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + repo + + + + https://github.com/hyperic/hadoop-collectd + scm:git:git://github.com/hyperic/hadoop-collectd.git + + + github + https://github.com/hyperic/hadoop-collectd/issues + + + + + + cloudera + Cloudera Repository + https://repository.cloudera.com/content/groups/public/ + + + + + + org.apache.hadoop + hadoop-core + ${hadoop.version} + provided + + + commons-httpclient + commons-httpclient + + + org.apache.tomcat + jasper + + + + + + com.hyperic.hypcomm + jcollectd + 0.2.0-SNAPSHOT + + + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + ${maven.compiler.source} + ${maven.compiler.target} + ${project.build.sourceEncoding} + true + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + jar-with-dependencies + + + + true + ${mainClass} + + + + + + make-assembly + package + + single + + + + + + +