怎么查看maven的pom.xml是否成功下载了所需jar包

如题,pom.xml动不动就要报错,不知道是不是因为没有成功下载jar的原因?

图片说明
Multiple annotations found at this line:
- Missing artifact org.apache.maven:maven-artifact:jar:2.0.6:compile
- Missing artifact org.apache.maven.shared:maven-filtering:jar:1.0-beta-4:compile
- Missing artifact org.apache.maven:maven-profile:jar:2.0.6:compile
- Missing artifact org.apache.maven.reporting:maven-reporting-api:jar:
2.0.6:compile
- Missing artifact org.apache.maven:maven-plugin-descriptor:jar:2.0.6:compile
- Missing artifact org.apache.maven.wagon:wagon-ssh:jar:1.0-beta-2:runtime
- Missing artifact org.apache.maven.wagon:wagon-ssh-external:jar:1.0-
beta-2:runtime
- Missing artifact org.apache.maven:maven-artifact-manager:jar:2.0.6:compile
- Missing artifact org.apache.maven:maven-plugin-registry:jar:2.0.6:compile
- Missing artifact org.apache.maven:maven-project:jar:2.0.6:compile
- Missing artifact org.apache.maven:maven-plugin-api:jar:2.0.6:compile
- Missing artifact org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
- Missing artifact com.jcraft:jsch:jar:0.1.27:runtime
- Missing artifact commons-cli:commons-cli:jar:1.0:compile
- Missing artifact org.apache.maven.wagon:wagon-ssh-common:jar:1.0-
beta-2:runtime
- Missing artifact org.codehaus.plexus:plexus-interactivity-api:jar:1.0-
alpha-4:compile
- Missing artifact org.wisdom-framework:mysql-connector-java:jar:5.1.34_1:compile
- Failed to read artifact descriptor for org.wisdom-framework:abstract-jdbc-
driver:jar:0.5
- Missing artifact org.apache.maven.wagon:wagon-file:jar:1.0-beta-2:runtime
- Missing artifact org.sonatype.plexus:plexus-build-api:jar:0.0.4:compile
- Missing artifact classworlds:classworlds:jar:1.1:compile
- Missing artifact org.apache.maven.plugins:maven-resources-plugin:jar:
2.4.3:compile
- Missing artifact org.apache.felix:org.apache.felix.ipojo.annotations:jar:
1.12.1:compile
- Missing artifact org.codehaus.plexus:plexus-interpolation:jar:1.13:compile
- Missing artifact org.apache.maven.wagon:wagon-provider-api:jar:1.0-
beta-2:compile
- Missing artifact org.apache.maven:maven-monitor:jar:2.0.6:compile
- Missing artifact xml-apis:xml-apis:jar:1.0.b2:runtime
- Missing artifact org.apache.maven.wagon:wagon-http-shared:jar:1.0-
beta-2:runtime
- Missing artifact jtidy:jtidy:jar:4aug2000r7-dev:runtime
- Missing artifact org.apache.maven:maven-core:jar:2.0.6:compile
- Missing artifact org.apache.maven:maven-settings:jar:2.0.6:compile
- Missing artifact org.apache.maven:maven-model:jar:2.0.6:compile
- Missing artifact org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-7:compile
- Missing artifact org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-
beta-2:runtime
- Missing artifact org.apache.maven:maven-repository-metadata:jar:2.0.6:compile
- Missing artifact org.apache.maven:maven-error-diagnostics:jar:2.0.6:compile
- Missing artifact org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-
stable-1:compile
- Missing artifact junit:junit:jar:3.8.1:test
- Missing artifact org.apache.maven:maven-plugin-parameter-documenter:jar:
2.0.6:compile

3个回答

应该是mvn repo库中无这些包,所以下不了,在这里查是否有这个jar http://mvnrepository.com/

cai772088996
cai772088996 亲,在eclipse怎么查看是否下载成功呢?
4 年多之前 回复

你的maven配置文件pom.xml里面有指定的文件是否下载,你打开编程工具,本人用的是MyEclipse ,比如本人的 图片说明 里面setting.xml F:\java\maven\jf_maven\settings.xml 这里面有指定的下载路径 本人截图:图片说明 里面有指定的位置 这个位置存放的就是jar包

到你的仓库里看看有没有包,如果没包的话就重新强制更新一遍,还是下载不成功的话就自己到官网下包,导入到相应的位置。还不行就是包与包之间的版本有冲突,换一个其他版本的包

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐