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

前端 未结 4 749
鱼传尺愫
鱼传尺愫 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

    A few things to look at:

    1. Both Eclipse and Maven are using the same java/bin installation
    2. Eclipse and Maven are using the same libraries, one might have something the other does not.

提交回复
热议问题