Failed to read artifact descriptor for org.apache.poi:poi-ooxml:pom.lastUpdated:3.10-FINAL
来源:互联网 发布:淘宝新店如何提升销量 编辑:程序博客网 时间:2024/06/16 10:00
今天准备些个poiTest 的Maven工程的,结果在配置pom中出现Failed to read artifact descriptor for org.apache.poi:poi-ooxml:pom.lastUpdated:3.10-FINAL这个问题。本人初学Maven搞了半天,居然是(http://192.168.0.101:8081/nexus/content/groups/public): connect timed out
maven--私服没开,我想死。
解决办法:
1、开
2、手动添加jar到本地仓库
方法:参考:http://www.blogjava.net/fancydeepin/archive/2012/06/12/380605.htmlMaven 确确实实是个好东西,用来管理项目显得很方便,但是如果是通过 Maven 来远程下载 JAR 包的话,我宿舍的带宽是4兆的,4个人共用,有时候用 Maven 来远程下载 JAR 包会显得很慢,一般我发现下载速度不明显的时候,我就 Ctrl + C 来终止它的下载。然后改用手动来下载,因为用迅雷一类的工具来下载会快很多。我机子上 Maven 的本地仓库的很多 JAR 包我都是手动下载的。手动下载的话就会带来一个问题,就是,怎么样手动将下载下来的 JAR 包添加到 Maven 的本地仓库。关于这个,网上也有很多资料。我说下我的做法。首先,推荐几个好的 Maven 常用仓库网址:http://mvnrepository.com/http://search.maven.org/http://repository.sonatype.org/content/groups/public/http://people.apache.org/repo/m2-snapshot-repository/http://people.apache.org/repo/m2-incubating-repository/第一个是我最常用的,然后是第二个,然后是第三个,最后两个是 Apache 的私有仓库,我还没用过,不过感觉应该还可以吧...接下来,还是一贯的作风,使用截图通俗易懂的方式来解说:如果你看过我的上一篇:Spring邮件服务之Html:Maven + Spring SMTP Mail With Html 文章,里面需要用到一个spring-context-support-3.1.0.RELEASE.jar 的 JAR 包,我把它安装到本地仓库的时候把图截了下来,顺便写了这篇文章,供有需要的网友参考。首先,到 http://mvnrepository.com/ 这个网,在搜索栏中输入你要搜索的 JAR 包的关键字来搜索,下面直接贴图:@1图@2图@3图以 spring-context-support-3.1.0.RELEASE.jar 为例,在 @3图中已经给出这个 jar 包的 groupId,artifactId,version信息,手动安装的时候这些信息不要改,否则 Maven 项目移植的话,jar 包下载就会失败。顺便把这信息帖下面,方便对照:<dependency> <groupId>org.springframework</groupId> <artifactId>spring-context-support</artifactId> <version>3.1.0.RELEASE</version></dependency>Maven 安装 JAR 包的命令是:mvn install:install-file -Dfile=jar包的位置 -DgroupId=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jar例如:我下载的这个 jar 包是放到了 D:\mvn 目录下(D:\mvn\spring-context-support-3.1.0.RELEASE.jar)那么我在 cmd 中敲入的命令就应该是:mvn install:install-file -Dfile=D:\mvn\spring-context-support-3.1.0.RELEASE.jar -DgroupId=org.springframework -DartifactId=spring-context-support -Dversion=3.1.0.RELEASE -Dpackaging=jar回车,显示安装成功:
0 0
- Failed to read artifact descriptor for org.apache.poi:poi-ooxml:pom.lastUpdated:3.10-FINAL
- Failed to read artifact descriptor for org.eclipse.tycho 错误
- PluginResolutionException( Failed to read artifact descriptor for org.apache.maven.plugins:)
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.5
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:2.3
- Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.7
- failed to read artifact descriptor for xx
- Maven项目pom.xml文件报错“ ArtifactDescriptorException: Failed to read artifact descriptor for ...”解决方法
- IntelliJ中pom.xml报错project上Failed to read artifact descriptor for xxxxxxxxx
- IntelliJ maven项目pom文件错误failed to read artifact descriptor for xx.jar问题解决办法
- Failed to read artifact descriptor
- Failed to read artifact descriptor for xxx的解决
- Failed to read artifact descriptor for xxx:jar
- Failed to read artifact descriptor for xxx:jar
- Maven 报错:Failed to read artifact descriptor for ***包
- Failed to read artifact descriptor for xxx:jar
- Failed to read artifact descriptor for xxx:jar的问题解决
- Failed to read artifact descriptor for xxx:jar
- android如何分析内存泄漏
- Sublime中配置python
- 使用sklearn优雅地进行数据挖掘
- IPC机制
- 12096 - The SetStack Computer
- Failed to read artifact descriptor for org.apache.poi:poi-ooxml:pom.lastUpdated:3.10-FINAL
- Python list dict iteration
- 详解docker存储驱动
- CSS使用技巧
- python新手必碰到的问题---encode与decode,中文乱码
- 笔试编程题必杀技——动态规划
- 测试中发现Bug后的处理过程
- swift开发使用闭包传值
- Codeforces Round #350 (Div. 2)A(模拟)