maven报错Multiple annotations found at this line:

上一篇 / 下一篇  2014-06-05 17:04:40 / 个人分类:Maven

今天现在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

enter image description here

2) Clearing Maven Cache:If you still face a problem, go to the local repository on your system, which might be present atC:\Users\myusername\.m2\repositoryand 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


TAG:

 

评分:0

我来说两句

Open Toolbar