diff --git a/README.md b/README.md index d4236dd8..6f814507 100644 --- a/README.md +++ b/README.md @@ -19,10 +19,7 @@ Avocado is currently in its infancy, but we hope to have something interesting t ## Building avocado -avocado uses [sbt](http://www.scala-sbt.org/) to build. To build avocado, cd into the repository and run "sbt compile". +avocado uses [Maven](http://maven.apache.org/) to build. To build avocado, cd into the repository and run "mvn package". Known issues with building: -* There is a current issue where the first time that the project is built, it fails on the first build before succeeding on the second build. This is because of an issue with a local dependency, that should hopefully be fixed soon. -* And... that local dependency is Adam. To install Adam locally, check out Adam and do "mvn package install" (for build instructions, see [the Adam readme](https://github.com/bigdatagenomics/adam)). We are picky though: currently, avocado depends on an Adam pull request that hasn't merged in yet. This pull request is available as the "avocado-patch" branch at [fnothaft/adam](https://github.com/fnothaft/adam). - -Standalone JARs are built using [sbt assembly](https://github.com/sbt/sbt-assembly). Once you have compiled, you can build the JAR by running "sbt assembly". Currently, the initial JAR takes about 10 minutes to build, but YMMV. \ No newline at end of file +* This project requires Adam as a local dependency. To install Adam locally, check out Adam and do "mvn package install" (for build instructions, see [the Adam readme](https://github.com/bigdatagenomics/adam)). We build off of the Adam trunk. diff --git a/build.sbt b/build.sbt deleted file mode 100644 index fdc149b6..00000000 --- a/build.sbt +++ /dev/null @@ -1,53 +0,0 @@ -import AssemblyKeys._ - -assemblySettings - -name := "Avocado" - -version := "0.0.1" - -organization := "edu.berkeley.cs.amplab" - -scalaVersion := "2.9.3" - -classpathTypes ++= Set ("orbit") - -net.virtualvoid.sbt.graph.Plugin.graphSettings - -libraryDependencies ++= Seq( - "org.apache.spark" %% "spark-core" % "0.8.0-incubating", - "org.scalatest" %% "scalatest" % "1.9.1" % "test", - "edu.berkeley.cs.amplab.adam" % "adam-format" % "0.5.0-SNAPSHOT", - "edu.berkeley.cs.amplab.adam" % "adam-commands" % "0.5.0-SNAPSHOT", - "args4j" % "args4j" % "2.0.23", - "commons-lang" % "commons-lang" % "2.6", - "variant" % "variant" % "1.93", - "tribble" % "tribble" % "1.93" -) - -libraryDependencies ++= Seq( - "org.eclipse.jetty.orbit" % "javax.servlet" % "2.5.0.v201103041518" artifacts (Artifact("javax.servlet", "jar", "jar") - ) -) - -resolvers ++= Seq( - "Typesafe" at "http://repo.typesafe.com/typesafe/releases", - "Scala Tools Snapshots" at "http://scala-tools.org/repo-snapshots/", - "Spray" at "http://repo.spray.cc", - "Local" at "file:///Users/fnothaft/.m2/repository", - "massie-maven" at "http://www.cs.berkeley.edu/~massie/maven/", - "apache" at "https://repository.apache.org/content/repositories/releases", - "hadoop-bam" at "http://hadoop-bam.sourceforge.net/maven/" -) - -mergeStrategy in assembly := { - case m if m.toLowerCase.endsWith("manifest.mf") => MergeStrategy.discard - case m if m.toLowerCase.matches("meta-inf.*\\.sf$") => MergeStrategy.discard - case "META-INF/services/org.apache.hadoop.fs.FileSystem" => -MergeStrategy.concat - case "reference.conf" => MergeStrategy.concat - case "log4j.properties" => MergeStrategy.concat - case _ => MergeStrategy.first -} - -assemblyCacheOutput in assembly := false \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 00000000..76daa118 --- /dev/null +++ b/pom.xml @@ -0,0 +1,129 @@ + + + 4.0.0 + edu.berkeley.cs.amplab.avocado + avocado + 0.0.1 + jar + avocado: A Variant Caller, Distributed + + + + org.apache.maven.plugins + maven-shade-plugin + 2.1 + + + + edu.berkeley.cs.amplab.avocado.Avocado + + + reference.conf + + + avocado-${project.version} + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + META-INF/LICENSE + META-INF/license + + + + + + org.eclipse.jdt:* + org.scalatest:* + org.apache.maven:lib:tests + + + + + + package + + shade + + + + + + net.alchim31.maven + scala-maven-plugin + 3.1.5 + + + scala-compile-first + process-resources + + compile + + + + scala-test-compile-first + process-test-resources + + testCompile + + + + attach-scaladocs + verify + + doc-jar + + + + + ${scala.version} + incremental + true + + -unchecked + -optimise + -deprecation + + + -Xms64m + -Xms1024m + -Xmx1024m + + + -source + ${java.version} + -target + ${java.version} + + + + + + org.apache.maven.plugins + maven-surefire-plugin + 2.7 + + true + + + + + + + + edu.berkeley.cs.amplab.adam + adam-format + 0.5.0-SNAPSHOT + + + edu.berkeley.cs.amplab.adam + adam-commands + 0.5.0-SNAPSHOT + + + diff --git a/project/build.properties b/project/build.properties deleted file mode 100644 index 45ec8a69..00000000 --- a/project/build.properties +++ /dev/null @@ -1 +0,0 @@ -sbt.version = 0.12.4 \ No newline at end of file diff --git a/project/plugins.sbt b/project/plugins.sbt deleted file mode 100644 index 981d163f..00000000 --- a/project/plugins.sbt +++ /dev/null @@ -1,4 +0,0 @@ -addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4") - -addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.9.2") -