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.sc mavenProject
, where mavenProject - directory with your maven project to prepare for conversion. - Run
sbt ' ; set javaOptions +="[-Dscala.version=2.12.8] [-Dsbt.version=1.2.8]"; converter/run mavenProject [outputDir]'
- 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
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 package: pl.jozwik.mvn2sbt.pom2sbt