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
Add this to Pom.xml
1.8 1.8