您的位置:首页 > 其它

maven-Multiple annotations found at this line:

2016-05-03 16:07 531 查看
今天现在maven中添加reportNG,发现报错,

Multiple annotations found at this line:
- ArtifactTransferException: Failure to transfer velocity:velocity:jar:1.4 from http://10.6.9.201:8080/nexus-2.3.1-01/ content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus 
has elapsed or updates are forced. Original error: Could not transfer artifact velocity:velocity:jar:1.4 from/to nexus (http://
10.6.9.201:8080/nexus-2.3.1-01/content/groups/public): Software caused connection abort: no further information to http:// 10.6.9.201:8080/nexus-2.3.1-01/content/groups/public/velocity/velocity/1.4/velocity-1.4.jar
- ArtifactTransferException: Failure to transfer velocity:velocity-dep:jar:1.4 from http://10.6.9.201:8080/nexus-2.3.1-01/ content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus 
has elapsed or updates are forced. Original error: Could not transfer artifact velocity:velocity-dep:jar:1.4 from/to nexus (http://
10.6.9.201:8080/nexus-2.3.1-01/content/groups/public): Software caused connection abort: no further information to http:// 10.6.9.201:8080/nexus-2.3.1-01/content/groups/public/velocity/velocity-dep/1.4/velocity-dep-1.4.jar

解决方法如下:

It is not a unique issue, happens every now and then (sometimes due to a slow connection and sometimes due to proxy servers now allowing to download)

You can get rid of this by either of the following ways:

1) Force Update:Right Click on the Project in Eclipse -> Maven -> Update Project On this screen select the check box Force Update for Snapshots/Releases



2) Clearing Maven Cache:If you still face a problem, go to the local repository on your system, which might be present at
C:\Users\myusername\.m2\repository
and delete the .cache folder and then follow
step 1.

If still facing issues, manually go to the org/apache folder and delete everything and then follow step 1. (This will definitely solve the issue
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: