STS lombok导入失败

折腾了五个小时,就为了import lombok

下载lombok.jar
下载好后放到STS.ini同级目录下
可选择直接点击lombok.jar进行安装,或者命令行
会出现一个界面,需要选择IDE
对于同时安装STS和eclipse的情况,一定要选STS的那个路径,两个都选也可以
成功之后会跳出第二个界面,注意,上面有写需要在STS.ini文件里加一句,加上就行,好像是用来在虚拟环境中运行用,不是很懂。

重启STS,还是不行

pom.xml文件会报这样的错
Failure to transfer org.projectlombok:lombok:jar:1.18.12 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will
not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact
org.projectlombok:lombok:jar:1.18.12 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled.

大概意思就是maven版本不匹配的意思,需要maven3,这里是maven2
之前为了省事,直接用STS自带的maven,果然容易出事情

下载maven3
官网下载zip包,然后解压
conf文

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值