今天使用maven部署项目,需要在pom文件中添加几个dependency,例如
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
<scope>compile</scope>
</dependency>
保存后,出现问题Failed to read artifact descriptor for xxx:jar
上网查找,综合各种解决方案,终于用下列方法解决:
1.到http://search.maven.org/ 搜索所需依赖,将依赖jar包下载到本地
2.执行
mvn install:install-file -Dfile=F:\m2\repository\org\hibernate\hibernate-core\javassist-3.12.1.GA.jar -DgroupId=javassist -DartifactId=javassist -Dversion=3.12.1.GA -Dpackaging=jar -DgeneratePom=true
注意:版本号要对应
执行完后显示以下信息,说明已将所需的依赖包部署到了本地repository,从新update后错误解决!
希望对各位有帮助,本人初学,仅仅是把问题解决了,但并不太清楚错误的本质和解决原理,希望指点!
[INFO] --- maven-install-plugin:2.3.1:install-file (default-cli) @ hiberweb ---
[INFO] Installing F:\m2\repository\org\hibernate\hibernate-core\javassist-3.12.1
.GA.jar to F:\m2\repository\javassist\javassist\3.12.1.GA\javassist-3.12.1.GA.ja
r
[INFO] Installing C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\mvninstall60626.pom to F:\m
2\repository\javassist\javassist\3.12.1.GA\javassist-3.12.1.GA.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.515s
[INFO] Finished at: Mon Oct 15 17:42:36 CST 2012
[INFO] Final Memory: 2M/127M
[INFO] ------------------------------------------------------------------------
分享到:
相关推荐
Missing artifact com.babasport:page:jar:1.0Missing artifact com.babasport:page:jar:1.0
Missing artifact com.oracle:ojdbc6:jar:11.2.0.1.0问题解决 ojdbc包pom.xml出错 <!-- oracle数据库驱动 --> <groupId>com.oracle</groupId> <artifactId>ojdbc6 <version>11.2.0.1.0 1.首先确定你...
数据库连接包,下载解压,使用命令 mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.5.0 -Dpackaging=jar -Dfile=(你的路径)\ojdbc14.jar
赠送jar包:netty-codec-http-4.1.73.Final.jar; 赠送原API文档:netty-codec-http-4.1.73.Final-javadoc.jar; 赠送源代码:netty-...人性化翻译,文档中的代码和结构保持不变,注释和说明精准翻译,请放心使用。
hcatalog is a metadata and table management system for hadoop, it's very useful
Missing artifact com.oracle:ojdbc14:jar:10.2.0.3.0-附件资源
1. 解压文件得到:jta-1_0_1B-classes.zip 2. cmd进入zip文件所在目录 ...mvn install:install-file -Dfile=./jta-1_0_1B-classes.zip -DgroupId=javax.transaction -DartifactId=jta -Dversion=1.0.1B -Dpackaging=jar
在maven中配置的阿里云仓库无法下载com.aspose:aspose:jar:19,所以自己找的资源,很麻烦,为了方便兄弟们给你们了。
Could not resolve dependencies for project org.apache.flink:flink-avro-confluent-registry:jar:1.15.3: Could not find artifact io.confluent:kafka-schema-registry-client:jar:6.2.2 in maven 安装本地...
在我们学习淘淘商城项目时候,导入系统项目,会出现Missing artifact com.github.pagehelper:pagehelper:jar:3. 错误
赠送jar包:mybatis-paginator-1.2.15.jar; 赠送原API文档:mybatis-paginator-1.2.15-javadoc.jar; 赠送源代码:mybatis-paginator-1.2.15-sources.jar; 赠送Maven依赖信息文件:mybatis-paginator-1.2.15.pom;...
解决maven引入hive的jar包时依赖报错Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:pom:5.1.5-jhyde in xxx的问题,maven路径org/pentaho/pentaho-aggdesigner-algorithm/5.1.5-jhyde/pentaho...
修复https://download.csdn.net/download/ajax_yan/10677844#里面少类的问题 ,之前上传的就不要下载了
jacob.jar,java和com组件间的桥梁,jacob-1.14.3-x64.dll文件。用java通过调用此jar相关的dll去操纵office(如:word)
ojdbc6-11.2.0.1.0jar,oracle连接ojdbc6-11.2.0.1.0jar
saaj.jar,saaj.jar,saaj.jar,saaj.jar,saaj.jar
Failure to transfer org.... Original error: Could not transfer artifact org.codehaus.plexus:plexus-io:jar: 1.0.1 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000
可以解决,maven引入hive jar包时,hive Could not find artifact org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde 问题