IDEA工程下载不下来jar包,import maven依赖时提示Could not transfer artifact XXX
2020-01-31 20:05
3715 查看
@maven Could not transfer artifact XXX
问题:IDEA工程下载不下来jar包,import maven依赖时提示Could not transfer artifact XXX
1、IDEA工程右键-》MAVEN-》OPEN “settings.xml”
2、修改settings.xml
原有配置:
<mirror> <id>nexus-aliyun</id> <mirrorOf>central</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
替换为:
<mirror> <id>nexus-aliyun</id> <mirrorOf>*</mirrorOf> <name>Nexus aliyun</name> <url>http://maven.aliyun.com/nexus/content/groups/public</url> </mirror>
3、重新import工程maven依赖,问题解决
- 点赞
- 收藏
- 分享
- 文章举报
相关文章推荐
- maven download jar Could not transfer artifact
- Maven 工程错误Could not transfer artifact org.codehaus.plexus:plexus-io:pom:2.0.1 from/to central
- Idea的spring工程里,经常会遇到Could not autowire. No beans of 'xxxx' type found的错误提示
- 解决maven 导依赖 和下载jar包时,因为(网速慢、断网)导致jar包下载不下来问题
- 使用maven过程中提示Could not calculate build plan: Failure to transfer org.apache.maven.plugins:......
- maven: Could not find artifact com.sun:tools:jar:1.5.0
- Could not transfer artifact org.springframework:spring-tx:jar:3.2.3.RELEASE
- Could not transfer artifact org.springframework:spring-tx:jar:3.2.3.RELEASE
- Maven-Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:jar:1.1
- maven 工程依赖了某个jar包 但还是报java.lang.ClassNotFoundException的问题
- maven项目,多个依赖,打成一个可执行jar包,可根据profiles进行打包,出现的Could not find or load main class的解决方法。
- Maven Could not find artifact javax.transaction:jta:jar:1.0.1B
- Maven工程聚合错误Could not find artifact cn.itcast.parent:itcast-parent:pom:0.0.1-SNAPSHOT and 'parent.rel
- Maven pom.xml依赖ojdbc架包提示Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0
- 导入Maven项目时jar包依赖配置失败:Failed to read artifact descriptor for xxx
- Could not find artifact android:android:jar:4.4.2_r3 in central (http://repo.maven.apache.org/maven2
- IDEA maven 无法下载依赖 jar包, pom.xml 报错
- idea maven 下载源码出现:Cannot download sources Sources not found for: xxx
- Maven工程聚合错误Could not find artifact cn.itcast.parent:itcast-parent:pom:0.0.1-SNAPSHOT and 'parent.rel
- 解决idea提示不能自动注入的问题(Could not autowire. No beans of 'xxx' type found)