From 8012977936b1a0a83662f6341bd01ca5b92c2e84 Mon Sep 17 00:00:00 2001 From: Oswaldo Dantas Date: Wed, 3 Jun 2020 15:26:10 +0200 Subject: [PATCH] Simplify project creation Instead of suggesting to call `mvn archetype:generate` and then filtering to find the recommended archetype, just give its coordinates on the mvn call already. Also, the observation about multiple scala maven plugins is obsolete. --- _overviews/tutorials/scala-with-maven.md | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/_overviews/tutorials/scala-with-maven.md b/_overviews/tutorials/scala-with-maven.md index 12bcdd495c..a8c6572301 100644 --- a/_overviews/tutorials/scala-with-maven.md +++ b/_overviews/tutorials/scala-with-maven.md @@ -58,19 +58,10 @@ The easiest way to create new projects is using an ["archetype"][11]. An archety You run the archetype plugin like this: - mvn archetype:generate + mvn archetype:generate -DarchetypeGroupId=net.alchim31.maven -DarchetypeArtifactId=scala-archetype-simple If this is your first time, you'll notice that Maven is downloading many jar files. Maven resolves dependencies and downloads them as needed (and only once). Right now, Maven is downloading its core plugins. -Afterwards, it should give you a list of archetypes (in the hundreds). -The Scala Maven Plugin was 339 on my list: "net.alchim31.maven:scala-archetype-simple (The maven-scala-plugin is used for compiling/testing/running/documenting scala code in maven.)". -You can type "scala" (or something else) to filter the results. -As of 2015 January 27, there you can choose version 3.1.4 or 3.1.5 of this plugin; you should choose the latest - - Choose net.alchim31.maven:scala-archetype-simple version: - 1: 1.4 - 2: 1.5 - Next, Maven will ask you for a groupId, artifactId, and package. You can read the [guide to naming conventions][12], but in short: - groupId: inverted domain name (e.g. com.my-organization)