0
votes

I'm trying to run some scala tests (FlatSpec style) using maven, however, when I run mvn test I get the following error.

Could not find artifact org.scalatest:maven-scalatest-plugin:jar:1.0

I'm following the instructions from https://github.com/scalatest/scalatest-maven-plugin and http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin. I noticed that the last update to this git repository was 2 years ago. Is this plugin still the de facto standard way to run scala tests from maven?

From this site, http://ladstatt.blogspot.com/2012/06/testing-with-maven-scaladin-scalatest.html, it says to add a pluginRepository, but that doesn't help as the error still shows.

I'm using Scala v2.10.6 and Maven 3.3.3.

1

1 Answers

1
votes

Your link shows that plugin should be of version 1.0-SNAPSHOT. And indeed, you can see here: https://oss.sonatype.org/content/groups/public/org/scalatest/maven-scalatest-plugin/ that there is only that version. So check you plugin declaration in pom.xml. It should contain <version>1.0-SNAPSHOT</version> and not 1.0