davidB / scala-archetype-simple

a simple maven archetype for project in scala
Creative Commons Zero v1.0 Universal
109 stars 95 forks source link

missing specs2-junit dependency #22

Closed polentino closed 6 years ago

polentino commented 8 years ago

On a newly created project, running mvn test will produce the following error:

[ERROR] /home/.../specs.scala:18: error: not found: type JUnitRunner [ERROR] @RunWith(classOf[JUnitRunner])

After adding the following dependency <dependency> <groupId>org.specs2</groupId> <artifactId>specs2-junit_${scala.compat.version}</artifactId> <version>2.4.16</version> </dependency>

all the tests build and successfully pass.

libasoles commented 7 years ago

This is related to this: https://github.com/davidB/scala-archetype-simple/issues/21

Basically, we are not getting the latest pom.xml code. The one here: https://github.com/davidB/scala-archetype-simple/blob/master/src/main/resources/archetype-resources/pom.xml

A workaround is copying the dependencies xml block (and also the configuration>args block because that prevents another error, the one I pointed in my link). Copying that xml blocks worked for me.

Anyway, I'd love to know why I'm not getting the latest pom when using the 1.6v archetype.

polentino commented 7 years ago

@libasoles +1 I really would like to understand why, indeed.

davidB commented 6 years ago

Should be fixed with 1.7