Mvn2Sbt
======================================================
Convert maven multi-module project (pom.xml files) to sbt project (build.sbt with plugins).
Logback and slf4j are used as reference projects.
Quick start:
- Clone mvn2sbt.
- Run
scala Eff.scala mavenProject, where mavenProject - directory with your maven project to prepare for conversion. - Run
sbt --client ' ; set javaOptions +="[-Dscala.version=2.12.8] [-Dsbt.version=1.2.8]"; converter/run mavenProject [outputDir]'- Optional (if outputDir specified): copy <outputDir>/build.sbt to <mavenProject>/build.sbt
- Optional (if outputDir specified): copy <outputDir>/plugins.sbt to <mavenProject>/project/plugins.sbt
- Go to <mavenProject> and run
sbt compilefor test
Note
arguments added as [..] are optional.
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 the package: pl.jozwik.mvn2sbt.pom2sbt
