The scala-maven-plugin (previously maven-scala-plugin) is used for compiling/testing/running/documenting Scala code in Maven.
Currently, you need Maven 3.x & JDK 8 to build the plugin, create the site, and run integration-test
.
mvn package
: generate jarmvn site
: generate the plugin websitemvn integration-test
: mvn package
+ run all integration test
scala.home
property in src/it/test_scalaHome/pom.xml
to correspond to your environment. See Build section above for a simple setup.mvn invoker:run -Dinvoker.test=test1
: run integration test 'test1' useful for tuning/debugmvn install
: mvn integration-test
+ publish on local maven repositorymvn install -Dmaven.test.skip=true
: mvn install
without run of unit test and run of integration testmvn release:prepare && mvn release:perform
: to publish on staging repository via pluginmvn site package source:jar javadoc:jar install:install gpg:sign deploy:deploy changes:announcement-generate -Dmaven.test.skip=true -DperformRelease=true
: manualtarget/checkout/target/announcement/announcement.md.vm
to post@implicitly.posterous.com, and to maven-and-scala@googlegroups.com (same subject but without tag part)