Maven Compile Error

后端 未结 8 2036
南笙
南笙 2020-12-15 08:52

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         


        
8条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 09:53

    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.

提交回复
热议问题