eclipse中maven打jar包时报错

如题,使用eclipse中的maven install命令打jar时,报错:

No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?


解决方式:

在Eclipse的菜单中:Window > Preferences > Java > Installed JREs

把其指定的JRE路径替换成JDK路径


猜你喜欢

转载自blog.csdn.net/xxfamly/article/details/79650511