English 中文(简体)
Maven下载腐败 Jars
原标题:Maven downloads corrupted Jars

我正在陷入一个ven天的问题,造成我的所有发病。

因此,在开端,我所有的夜晚项目都做了罚款。 当时,我今天转向新的计算机,试图将其全部编成册。

我从Eclipse中看到的第一个错误是,IO错误阅读了当地马文存放处的杰尔档案。 然后,我 go,有人提出,这是一些腐败的档案,只是删除这些档案,让存放处重建。

这个问题已经解决了。 之后,它又一次地po。

我停下来,拆除了整个地方存放处,并再次做了一切。 然后,我发现原因:

混凝土存放处是BAD。

因此,这里是青少年信息的一部分。

[INFO] Unable to find resource  org.apache.ws.commons.axiom:axiom-dom:jar:1.2.8 
 in repository eclipse-repo (http://repo1.maven.org/eclipse)
Downloading: https://maven-repository.dev.java.net/nonav/repository//org.apache.
ws.commons.axiom/jars/axiom-dom-1.2.8.jar
373b downloaded  (axiom-dom-1.2.8.jar)
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local =  2c6102c2c3
70e0b993e897e981618ed448651147 ; remote =   

档案中有一个http:// redirect。

301 Moved Permanently

Moved Permanently

文件移至here


Apache Server at maven-repository.dev.java.net Port 443

我.。 我怎样才能得到真正的依赖jar? 我怎么能够告诉大家避免这种情况? 这确实令人厌恶。

最佳回答

There is king of bug in maven, simply because maven does not skip taking an artifact if one of the maven repo sends a 301(MOVED PERMANANTLY) and it simply take that message and write it as the pom file. Simply if the maven repo sends 404 it skip that repo and go for another, but here with 301 it just dump the message as the pom file and later on this failes.

我假设你重新使用Maven 2.2.1? 如果是,降级为2.2.0马文,或使用附加环境。 在2.2.1中,输油管的安装发生了变化。

Maven 2.2.1旨在纠正在Maven 2.2.0中选择基于HttpClient的Wagon执行对吉大港山区/吉大港山区转移的几次重大倒退。 新的释放重新恢复了这一选择,恢复了以太阳为基础的或轻重的瓦贡实施,成为这种交通的违约。

但是,Maven 2.2.1进一步采取措施,提供一种选择哪一个提供者——或实施——用户希望用于某一特定转让协议的手段。

因此,审判过程充满了更多的束缚。

mvn -Dmaven.wagon.provider.http=httpclient clean install
问题回答

答复:避免了dev.java.net。 它常常以某种方式打破。 如果你们需要来自那里的东西,就安装在一个地方存放管理人中。

我看到了这一错误,有英特尔利J IDEA 13.1.5和Utupha14.04。

Maven 2.2? 节省了301个应急机构,作为~/m2海滩的jar档案,在建筑期间造成问题。

我的固定装置是安装Maven 3. 乌班图14.04指示如下:

http://www.sysads.co.uk/4005/install-apache-maven-3-2-1-ubuntu-14-04/





相关问题
Derby gets stuck closing?

I ve got unit tests (in maven) that use derby. At the end of the test run, there is a very long pause, with these log messages before the pause. INFO: Closing Hibernate SessionFactory Nov 16, 2009 8:...

Execute goal on parent after children complete

I have a multi-module maven project (several levels of nesting). Normally, when I execute a maven build (like mvn install or whatever), maven will run all the goals for the parent project before ...

Including dependencies in a jar with Maven

Is there a way to force maven(2.0.9) to include all the dependencies in a single jar file? I have a project the builds into a single jar file. I want the classes from dependencies to be copied into ...

Java Equivalent of distcc

Distcc makes it easy to distribute a C or C++ compile job across a number of machines, and is a godsend for working with large, frequently-built codebases. An increasing number of our large projects ...

Maven Assembly Problem

I have a maven multiple-module project, which is giving me headaches in the assembly:assembly phase. I have a module which has an assembly defined in it which works fine when I invoke mvn assembly:...

热门标签