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

前端 未结 4 752
误落风尘
误落风尘 2021-02-15 11:02

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:13

    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.

提交回复
热议问题