The scala-maven-plugin (previously maven-scala-plugin) is used for compiling/testing/running/documenting scala code in maven.
Clone or download
Latest commit 65cb81f Oct 19, 2018

README.md

Build Status

Scala Maven Plugin

The scala-maven-plugin (previously maven-scala-plugin) is used for compiling/testing/running/documenting Scala code in Maven.

Similar plugins

Build

Currently, you need Maven 3.x & JDK 8 to build the plugin, create the site, and run integration-test.

Commands

  • ./mvnw package : generate jar
  • ./mvnw site` : generate the plugin website
  • ./mvnw integration-test: ./mvnw package + run all integration test
    • note: to run test_scalaHome: you have to set scala.home property in src/it/test_scalaHome/pom.xml to correspond to your environment. See Build section above for a simple setup.
  • ./mvnw invoker:run -Dinvoker.test=test1` : run integration test 'test1' useful for tuning/debug
  • ./mvnw install: ./mvnw integration-test + publish on local maven repository
  • ./mvnw install -Dmaven.test.skip=true: ./mvnw install without run of unit test and run of integration test
  • release :
    • ./mvnw release:prepare && mvn release:perform` : to publish on staging repository via plugin
    • ./mvnw site package source:jar javadoc:jar install:install gpg:sign deploy:deploy changes:announcement-generate -Dmaven.test.skip=true -DperformRelease=true` : manual
    • connect to http://oss.sonatype.org/ close and release the request(about scala-maven-plugin) in staging repositories
    • browse the updated mvnsite (check version into samples, ...)
    • email the content of target/checkout/target/announcement/announcement.md.vm to post@implicitly.posterous.com, and to maven-and-scala@googlegroups.com (same subject but without tag part)

TODO