Chapter 1: Ticket Projection - build error

Running ProjectionTest.java in IntelliJ runs good. But running using maven fails with build failure.

$ mvn test -Dtest=ProjectionTest

[ INFO ] BUILD FAILURE

[ INFO ] ------------------------------------------------------------------------

[ INFO ] Total time: 2.759 s

[ INFO ] Finished at: 2019-02-16T15:27:25-06:00

[ INFO ] ------------------------------------------------------------------------

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

org.apache.maven.lifecycle.LifecycleExecutionException : Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project mflix: No tests were executed! (Set -DfailIfNoTests=false to ignore this error.)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute ( MojoExecutor.java:215 )
at org.apache.maven.lifecycle.internal.MojoExecutor.execute ( MojoExecutor.java:156 )
at org.apache.maven.lifecycle.internal.MojoExecutor.execute ( MojoExecutor.java:148 )

Hi @Saravanan_69120,

This is a bit odd.
I can’t reproduce it. Can you confirm the path in which you are running the maven command ?

Given that on Intellij it runs good, you can go ahead and check the status page for the validation code.
But am curious on why you are getting this odd behavior.

N.