码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2019-05-31 20:00:26      阅读:631      评论:0      收藏:0      [点我收藏+]

标签:ons   ORC   legacy   路径   alt   lin   ESS   cto   connector   

一般这个错误出现在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:错误

标签:ons   ORC   legacy   路径   alt   lin   ESS   cto   connector   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!