Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Maven

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The Central Repository

$HOME/.m2

maven: shade plugin, scala compile plugin, exclude manifest files, ...

import as maven project ...

find an updated version of scala archetype for maven

mvn package  
mvn clean …

Maven Dependencies

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Properties

<properties>
  <scala.version>2.11.11</scala.version>
</properties>

Dependencies

Unit Test

<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.11</version>
    <scope>test</scope>
</dependency>

specs

<dependency>
    <groupId …

Building Tool for Scala

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. The recommended building tool for Sclas is Gradle > Maven > sbt. Maven is too verbosal while sbt is too hard to use.

References

http://www.hammerlab.org/2017/04/06/scala-build-tools/