关于maven有个包没加载上,显示错误Missing artifact com.thunisoft.dxfl:dxfl-producer:jar:0.0.1

来源:互联网 发布:jdk1.6 linux tar.gz 编辑:程序博客网 时间:2024/06/04 18:02

maven工程有个包一直加载不上,是在com.thunisoft.dxfl中的jar包下载不下来,解决办法:

1.在pom.xml文件中关于上面包的地方一直报错

   采用手动加入这个jar包-->project->properties->build path->library->选中maven,此时手动点击add external jars选项,手动添加在maven2(我的maven jar包存储的位置)中找到dxfl文件中的jar包添加进去。

2.做完上步骤后,还是会报错。然后从problem中看到错误如下:

  Description ResourcePathLocationType
ArtifactDescriptorException: Failed to read artifact descriptor for com.thunisoft.dxfl:dxfl-producer:jar:0.0.1: UnresolvableModelException: Failure to find com.thunisoft.dxfl:dxfl:pom:0.0.1 in http://repo.thunisoft.com/maven2/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of summer-dev has elapsed or updates are forcedpom.xml/xxptline 1Maven Dependency Problem




Description ResourcePathLocationType
ArtifactDescriptorException: Failed to read artifact descriptor for com.thunisoft.dxfl:dxfl-producer:jar:0.0.1: UnresolvableModelException: Could not find artifact com.thunisoft.dxfl:dxfl:pom:0.0.1 in summer-dev (http://repo.thunisoft.com/maven2/content/repositories/public-snapshots/)pom.xml/xxptline 1Maven Dependency Problem

我们可以看到,没有找到jar包,说明路径有问题吧,复制路径http://repo.thunisoft.com/maven2/content/repositories/查找,然后是在public-snapshots/com/thunisoft/dxfl/dxfl-producer/中看到jar包了,然后可以看出,这两个路径不同;在http://repo.thunisoft.com/maven2/content/repositories/releases/下没有这个jar包,然后我们去maven3(这是我的maven名称)的setting.cml文件中修改summer-dev中的路径,也就是查找那块有releases,然后把它换成public-snapshots。-->这个之后要update一下

还有一些关于maven的选项你可以看一下,在project->maven4myeclipse中。

可是这时候,只是去除了一个错误,另外一个还是存在。

3.还是去哪个网址上看了一下,没有0.0.1这个版本,然后版本要升级,在pom.xml中,将版本号换成1.0.1之后没有问题了。


或者直接拷贝一个dxf文件夹l来试试。


0 0
原创粉丝点击