When I build and run my program in Netbeans, it works without a problem. But with same pom.xml file when I try \"mvn compile\" I get this error:
[ERROR] Fail
Please Execute Maven Run from eclipse and then run mvn test from command prompt. In my case all issues resolved with this step.