Convert maven project (pom.xml files) to sbt project (build.sbt with plugins).
Logback and slf4j are used as reference projects.
Quick start:
- Clone project2.
- Run
scala Eff.sc mavenProject
, where mavenProject - directory with your maven project to prepare for conversion. - 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
- 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