Maven的一些问题

failure to transfer com.google.code.findbugs:jsr305:jar:2.0.1 from http://repo1.maven.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 com.google.code.findbugs:jsr305:jar:2.0.1 from/to central (http://repo1.maven.org/maven2): The operation was cancelled.

出现这种 com.google的,就去这个对应的地址找到这个,看看这个里面是不是下载好了,如果有名字出现last字样的,就是没有下载好,把包都删除了,再重新下载一遍。

Multiple annotations found at this line:
	- Missing artifact org.codehaus.plexus:plexus-interpolation:jar:1.13
	- Missing artifact classworlds:classworlds:jar:1.1
	- Missing artifact org.apache.maven.plugins:maven-compiler-plugin:jar:3.1
	- Missing artifact jtidy:jtidy:jar:4aug2000r7-dev
	- Missing artifact org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7
	- Missing artifact org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.6
	- Missing artifact org.apache.maven.shared:maven-filtering:jar:1.1
	- Missing artifact org.apache.maven:maven-artifact-manager:jar:2.0.6
	- Missing artifact org.apache.maven:maven-settings:jar:2.0.6
	- Missing artifact org.apache.maven.shared:maven-shared-utils:jar:0.1
	- Missing artifact org.apache.maven.wagon:wagon-provider-api:jar:1.0-beta-2
	- Missing artifact org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2
	- ArtifactDescriptorException: Failed to read artifact descriptor for org.codehaus.plexus:plexus-container-default:jar:1.5.5: 
	 ArtifactResolutionException: Failure to transfer org.codehaus.plexus:plexus-container-default:pom:1.5.5 from http://repo1.maven.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.codehaus.plexus:plexus-container-default:pom:1.5.5 from/to central (http://repo1.maven.org/
	 maven2): The operation was cancelled.
	- Missing artifact org.apache.maven:maven-project:jar:2.0.6
	- ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-web:jar:
	 1.5.6.RELEASE: ArtifactResolutionException: Failure to transfer org.springframework.boot:spring-boot-starter-web:pom:1.5.6.RELEASE from 
	 http://repo1.maven.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.springframework.boot:spring-boot-starter-web:pom:
	 1.5.6.RELEASE from/to central (http://repo1.maven.org/maven2): The operation was cancelled.
	- Missing artifact org.apache.maven.wagon:wagon-ssh-common:jar:1.0-beta-2
	- Missing artifact org.apache.maven:maven-artifact:jar:2.0.6
	- Missing artifact org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
	- ArtifactDescriptorException: Failed to read artifact descriptor for org.codehaus.plexus:plexus-compiler-javac:jar:2.2: 
	 ArtifactResolutionException: Failure to transfer org.codehaus.plexus:plexus-compiler-javac:pom:2.2 from http://repo1.maven.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.codehaus.plexus:plexus-compiler-javac:pom:2.2 from/to central (http://repo1.maven.org/maven2): The 
	 operation was cancelled.
	- Missing artifact org.apache.maven.wagon:wagon-ssh-external:jar:1.0-beta-2
	- Missing artifact org.codehaus.plexus:plexus-utils:jar:2.0.5
	- Missing artifact org.codehaus.plexus:plexus-compiler-api:jar:2.2
	- Missing artifact org.apache.maven:maven-toolchain:jar:1.0
	- Missing artifact org.apache.maven.wagon:wagon-http-shared:jar:1.0-beta-2
	- Missing artifact org.apache.maven:maven-error-diagnostics:jar:2.0.6
	- ArtifactDescriptorException: Failed to read artifact descriptor for org.codehaus.plexus:plexus-compiler-manager:jar:2.2: 
	 ArtifactResolutionException: Failure to transfer org.codehaus.plexus:plexus-compiler-manager:pom:2.2 from http://repo1.maven.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.codehaus.plexus:plexus-compiler-manager:pom:2.2 from/to central (http://repo1.maven.org/
	 maven2): The operation was cancelled.
	- Missing artifact org.apache.maven:maven-monitor:jar:2.0.6
	- Missing artifact xml-apis:xml-apis:jar:1.4.01
	- Missing artifact org.apache.maven:maven-plugin-registry:jar:2.0.6
	- Missing artifact junit:junit:jar:4.12
	- Missing artifact commons-cli:commons-cli:jar:1.0
	- Missing artifact org.hamcrest:hamcrest-core:jar:1.3
	- Missing artifact org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
	- Missing artifact org.apache.maven:maven-core:jar:2.0.6
	- Missing artifact org.apache.maven.wagon:wagon-file:jar:1.0-beta-2
	- Missing artifact org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-beta-2
	- Missing artifact org.apache.maven:maven-plugin-api:jar:2.0.6
	- Missing artifact org.sonatype.plexus:plexus-build-api:jar:0.0.4
	- Missing artifact org.apache.maven:maven-repository-metadata:jar:2.0.6
	- Missing artifact org.apache.maven:maven-plugin-descriptor:jar:2.0.6
	- Missing artifact com.jcraft:jsch:jar:0.1.27
	- Missing artifact org.apache.maven:maven-model:jar:2.0.6
	- Missing artifact org.apache.maven:maven-profile:jar:2.0.6
	- Missing artifact org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
	- Missing artifact org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
	- Missing artifact com.google.code.findbugs:jsr305:jar:2.0.1
	- Missing artifact org.apache.maven.shared:maven-shared-incremental:jar:1.1
	- Missing artifact org.apache.maven.plugins:maven-resources-plugin:jar:2.6


在标签头出现这么一大串东西,点击项目工程,点击maven4MyEclipse,点击update maven dependencies,进去之后,把左下角的 Force update of Snapshots/Releases点击上,最后点击Ok。就好了。

我面临的Maven问题,大多数是jar包没有或者没有下载完整。只能多试几次,pom.xml文件里面出现多种问题,一点点解决。

谢谢这几位大佬的博客。 https://blog.csdn.net/weixin_39533410/article/details/80059707

https://blog.csdn.net/topdeveloperr/article/details/50628844

猜你喜欢

转载自blog.csdn.net/karaysn/article/details/82700659
今日推荐