Skip to content
Advertisement

Tag: maven-archetype

Maven archetype: org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: NullPointerException

On Ubuntu Server 18.04, I created a skeleton Maven project as follows, and am just trying to get it to compile. Running mvn compile is fine. But running mvn test fails with error [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test (default-test) on project my-app: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.20.1:test failed.: NullPointerException -> [Help 1] Two questions: What could be causing this?

Advertisement