标签: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