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
In your log, I see this line:
generics are not supported in -source 1.3
Check the source and target configuration of maven-compiler plug-in, and update it to 1.5.