马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
Maven革新,当地堆栈无法更新
征象
- This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced
复制代码 缘故原由
由于上一次实行下载,发现对应的堆栈没有这个maven设置,当地缓存中也没有。因此,不会更新
办理方案
利用maven逼迫更新,来革新当地maven堆栈依赖的父项目不存在,但install能乐成
征象
在项目中有个${build.env}变量,在项目中没有找到这个变量;但项目中有一个parent项目- <parent>
- <groupId>com.kingreda.framework</groupId>
- <artifactId>kingreda-framework</artifactId>
- <version>2.4.7</version>
- <relativePath>../kingreda-framework</relativePath>
- </parent>
复制代码 在父项目中的profile中中界说了<build.env>dev<build.env>,但本项目中父项目标路径是:<relativePath>../kingreda-framework</relativePath>,但在当地没有这个项目。
但是,当地能build乐成,package和install也都能乐成
缘故原由
- 固然当地没有父项目,由于设置了导致提示告警,但在本项目maven的refresh革新按钮的时间,会从私有堆栈下载父类项目标pom文件、jar等
- 同时,compile的时间,发现当地缓存没有父类项目,也会从私有堆栈下载父类项目标pom文件等信息
- 因此,compile,package,install的时间都能乐成
办理方案
- maven的compile会自动办理依赖的parent项目标标题,无需手动办理
|