kentongray / mvn2sbt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mvn2Sbt Build StatusCoverage Status

Convert maven project (pom.xml files) to sbt project (build.sbt with plugins).

Logback and slf4j are used as reference projects.

Quick start:

  1. Clone project2.
  2. Run scala Eff.sc mavenProject, where mavenProject - directory with your maven project to prepare for conversion.
  3. Run sbt "converter/run mavenProject [outputDir] [-Dscala.version=<2.11.2>] [-Dsbt.version=0.13.5]"
    • Optional (if outputDir specified): copy /build.sbt to <mavenProject>/build.sbt
    • Optional (if outputDir specified): copy /plugins.sbt to <mavenProject>/project/plugins.sbt
  4. Go to and run sbt compile for test

Supported plugins:

Without parameters ( default configuration)

  • gmaven-plugin
  • maven-thrift-plugin
  • maven-war-plugin
  • cxf-codegen-plugin
  • gwt-maven-plugin
  • testng plugin (as dependency)

Example converters are in package: pl.jozwik.mvn2sbt.pom2sbt

About

License:Apache License 2.0


Languages

Language:Scala 90.9%Language:Java 9.1%