MAVEN打包找不到com.sun.beans.introspect.PropertyInfo的类文件

在用eclipse打包guns项目是时,出现了这个问题
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project inspection: Compilation failure
/E:/sbxj/src/main/java/cn/stylefeng/guns/core/util/Contrast.java:[56,41] 无法访问com.sun.beans.introspect.PropertyInfo
找不到com.sun.beans.introspect.PropertyInfo的类文件
-> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

确认项目jdk版本和环境变量jdk版本是否一致

如果Constrast.java这个文件在eclipse里面没有报错,那就clean一下再重新compile。
再不然,你这个com.sun.beans.introspect.PropertyInfo,如果是依赖于maven引入的,就去你的maven本地仓看看是不是真的有这个包。
如果文件夹确实存在,但是里面的jar包没有,那就把整个目录删掉,重新更新maven。