2013-03-28 2 views
0

안녕하세요 저는 maven java에서 새로 왔습니다. Eclipse Juno에서 maven 프로젝트를 만들고 싶지만 이클립스에서 변경 사항을 저장하면이 오류가 나타납니다. 내 프로젝트는 example과 같습니다.Error ArtifactTransferException

- Archive for required library: 'C:/Users/Iman/.m2/repository/org/geoserver/main/2.2/main-2.2.jar' in project 'hello' cannot be read or is not a valid ZIP file 
- ArtifactTransferException: Failure to transfer it.geosolutions.imageio-ext:imageio-ext streams:jar:1.1.4 from http://download.java.net/maven/2 was cached in the local repository, resolution will not be reattempted until the update interval of maven2-repository.dev.java.net has elapsed or updates are forced. Original error: Could not transfer artifact it.geosolutions.imageio-ext:imageio-ext-streams:jar:1.1.4 from/to maven2 repository.dev.java.net (http://download.java.net/maven/2): The operation was cancelled. 
- ArtifactTransferException: Failure to transfer it.geosolutions.imageio-ext:imageio-ext-streams:jar:1.1.4 from http:// maven.geo-solutions.it/ was cached in the local repository, resolution will not be reattempted until the update interval of geosolutions has elapsed or updates are forced. Original error: Could not transfer artifact it.geosolutions.imageio-ext:imageio-ext-streams:jar:1.1.4 from/to geosolutions (http://maven.geo-solutions.it/): The operation was cancelled. 
- ArtifactTransferException: Failure to transfer org.jaitools:jt vectorbinarize:jar:1.2.0 from http://maven.restlet.org was cached in the local repository, resolution will not be reattempted until the update interval of maven-restlet has elapsed or updates are forced. Original error: Could not transfer artifact org.jaitools:jt-vectorbinarize:jar:1.2.0 from/to maven-restlet (http://maven.restlet.org): The operation was cancelled. 
- Missing artifact it.geosolutions.imageio-ext:imageio-ext-streams:jar:1.1.4 
- ArtifactTransferException: Failure to transfer org.jaitools:jt-vectorbinarize:jar:1.2.0 from http://download.osgeo.org/webdav/geotools/ was cached in the local repository, resolution will not be reattempted until the update interval of osgeo has elapsed or updates are forced. Original error: Could not transfer artifact org.jaitools:jt-vectorbinarize:jar:1.2.0 from/to osgeo (http://download.osgeo.org/webdav/geotools/): The operation was cancelled. 
- ArtifactTransferException: Failure to transfer org.jaitools:jt-vectorbinarize:jar:1.2.0 from http://download.java.net/maven/2 was cached in the local repository, resolution will not be reattempted until the update interval of maven2-repository.dev.java.net has elapsed or updates are forced. Original error: Could not transfer artifact org.jaitools:jt-vectorbinarize:jar:1.2.0 from/to maven2 repository.dev.java.net (http://download.java.net/maven/2): The operation was cancelled. 
- ArtifactTransferException: Failure to transfer org.jaitools:jt vectorbinarize:jar:1.2.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.jaitools:jt-vectorbinarize:jar:1.2.0 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. 
- ArtifactTransferException: Failure to transfer it.geosolutions.imageioext:imageio-ext-streams:jar:1.1.4 from http://maven.restlet.org was cached in the local repository, resolution will not be reattempted until the update interval of maven-restlet has elapsed or updates are forced. Original error: Could not transfer artifact it.geosolutions.imageio-ext:imageio-ext-streams:jar:1.1.4 from/to maven-restlet (http://maven.restlet.org): The operation was cancelled. 
- ArtifactTransferException: Failure to transfer org.jaitools:jtvectorbinarize:jar:1.2.0 from http://maven.geo-solutions.it/ was cached in the local repository, resolution will not be reattempted until the update interval of geosolutions has elapsed or updates ar forced. Original error: Could not transfer artifact org.jaitools:jt-vectorbinarize:jar:1.2.0 from/to geosolutions (http://maven.geosolutions.it/): The operation was cancelled. 
- ArtifactTransferException: Failure to transfer it.geosolutions.imageioext:imageio-ext-streams:jar:1.1.4 from http://download.osgeo.org/webdav/geotools/ was cached in the local repository, resolution will not be reattempted until the update interval of osgeo has elapsed or updates are forced. Original error: Could not transfer artifact it.geosolutions.imageio-ext:imageio-ext-streams:jar:1.1.4 from/to osgeo (http://download.osgeo.org/webdav/geotools/): The operation was cancelled. 
- Missing artifact org.jaitools:jt-vectorbinarize:jar:1.2.0 
- ArtifactTransferException: Failure to transfer it.geosolutions.imageioext:imageio-ext-streams:jar:1.1.4 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact it.geosolutions.imageio-ext:imageio-ext-streams:jar:1.1.4 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. 

답변

0
m2eclipse에

는 .m2/Settings.XML의 지정된 프록시를 사용하고 있지만, 원형을 relolving 경우는 무시 nonProxyHosts.

모든 새로운 아티팩트에 대해 이와 같은 연결 오류가 발생하는 경우 m2eclipse는 외부 Maven 설치가 아니라 기본적으로 포함 된 Maven 인스턴스를 사용합니다. 내부 Maven 인스턴스는 외부 Maven 인스턴스 (예 : % USERPROFILE % /. m2/settings.xml)와 같은 Maven 설정을 사용하지 않을 수 있으며, 내부 Maven 인스턴스가 프록시를 통해 연결할 수 없게 될 수 있습니다.

Eclipse 환경 설정을 사용하여 외부 Maven 설치를 추가하고 Eclipse 내부에서 Maven 명령을 실행하는 데 사용할 수 있습니다.

m2e 플러그인을 끄십시오.