首页 > 其他 > 详细

maven的pom.xml中出现Multiple annotations found at this line:错误

时间:2019-05-31 20:39:02      阅读:266      评论:0      收藏:0      [点我收藏+]

一般这个错误出现在pom.xml的第一行,出错信息如下:

Multiple annotations found at this line:
- Missing artifact stax:stax-api:jar:1.0.1
- ArtifactTransferException: Failure to transfer stax:stax-api:jar:1.0.1 from http://dist.codehaus.org/ was cached in the local repository, resolution will
not be reattempted until the update interval of codehaus has elapsed or updates are forced. Original error: Could not transfer artifact stax:stax-api:jar:1.0.1
from/to codehaus (http://dist.codehaus.org/): No connector available to access repository codehaus (http://dist.codehaus.org/) of type legacy using the
available factories AsyncRepositoryConnectorFactory, WagonRepositoryConnectorFactory
- ArtifactTransferException: Failure to transfer stax:stax-api:jar:1.0.1 from http://maven.aliyun.com/nexus/content/groups/public/ was cached in the
local repository, resolution will not be reattempted until the update interval of aliMaven has elapsed or updates are forced. Original error: Could not transfer
artifact stax:stax-api:jar:1.0.1 from/to aliMaven (http://maven.aliyun.com/nexus/content/groups/public/): No response received after 60000

 

原因:缺少指定的依赖,并且pom.xml中还没有加入此依赖,

解决:

(1) 首先根据stax:stax-api:jar:1.0.1在pom.xml添加配置信息,如下所示:

技术分享图片

(2) 如果本地有此依赖的路径,就删除此路径,然后重新 Maven4Myeclipse --> Update Project...即可

 

maven的pom.xml中出现Multiple annotations found at this line:错误

原文:https://www.cnblogs.com/earthchinagl/p/10957058.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!