the maven pom.xml appeared Multiple annotations found at this line: Error

This error usually appears in the first line of pom.xml, the following error message:

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

 

The reason: lack of specific dependence, and the pom.xml not a member of this dependency,

solve:

(1) First, according to stax: stax-api: jar: 1.0.1 add configuration information pom.xml, as follows:

(2) If the local has this dependency path, this path is deleted, then re-Maven4Myeclipse -> Update Project ... to

 

Guess you like

Origin www.cnblogs.com/earthchinagl/p/10957058.html