1

I do not have surefire plug-in entry in my pom. But I get surefure plug-in error, when I run with command:

 mvn test -Dtest=TEstClass

Error:

 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-
 test) on project my-projection: No tests were executed!  (Set -DfailIfNoTests=false to ignore 
 this error.) -> [Help 1]

Where is it coming from?

Kevin Rave
  • 13,876
  • 35
  • 109
  • 173

1 Answers1

10

The super pom for a project includes the surefire plugin. If you run mvn help:effective-pom it will show you the pom which you are in effect using whenever you invoke maven in your project, including everything you inherit from parent pom files, and you'll see that it includes the surefire plugin.

DPM
  • 1,571
  • 11
  • 8