Search code examples
scalalagom

Template not found for: -Dsbt.version 0.13.13 lagom/lagom-scala.g8


Good afternoon,

I am trying to follow this hello world tutorial of lagom, however when running the command:

sbt new -Dsbt.version=0.13.13 lagom/lagom-scala.g8

I get the following error:

Template not found for: -Dsbt.version 0.13.13 lagom/lagom-scala.g8

As stated in the setup part of the tutorial I have checked my java version:

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

My javac version:

javac 1.8.0_131

And my sbt version:

[info] 0.13.15

I have trying running the command with my sbt version as the parameter:

sbt new -Dsbt.version=0.13.13 lagom/lagom-scala.g8

But it still throws the no template error, could you please point out what am I doing wrong?

Which comply with the prerequisites for the tutorial


Solution

  • Turns out I had to remove the -Dsbt.version=0.13.13 parameter of the commmand.

    Running it as:

    sbt new lagom/lagom-scala.g8
    

    Removes the error and it works correctly.