Same source code, Eclipse build success but Maven (javac) fails

前端 未结 4 736
鱼传尺愫
鱼传尺愫 2021-02-15 11:07

Keep getting this error when compiling using Maven:

type parameters of X cannot be determined; no unique maximal instance exists for type variable X wit         


        
4条回答
  •  醉梦人生
    2021-02-15 11:19

    It definitely has to do something with the JDK versions maven and eclipse are using. Also make sure your Compiler compliance level in eclipse points to the right JDK version.

提交回复
热议问题