maven编译错误,菜鸟解决不了,特来请教

祥祥看世界 2017-11-22 03:21:23
以下是maven使用mvn clean install后的消息:
Unable to get dependency information: Unable to read the metadata file for artifact 'com.google.code.gson:gson:jar': Invalid JDK version in profile 'doclint-java8-disable': Unbounded range: [1.8, for project com.google.code.gson:gson-parent
com.google.code.gson:gson:jar:2.6.2

from the specified remote repositories:
springsource-repo (http://repo.springsource.org/release),
ibiblio (http://mirrors.ibiblio.org/maven2),
cetral-maven (http://central.maven.org/maven2/),
central (http://repo1.maven.org/maven2),
opengeo (http://repo.opengeo.org),
jboss (https://repository.jboss.org/nexus/content/repositories/releases),
hualala (http://repo.hualala.com/nexus/content/repositories/releases),
maven2 (http://repo1.maven.org/maven2)

Path to dependency:
1) com.wondertek.mobilevideo.cztv.core:core-util:jar:3.0.0
2) com.aliyun.mns:aliyun-sdk-mns:jar:jar-with-dependencies:1.1.8
...全文
749 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
Royal_lr 2017-11-22
  • 打赏
  • 举报
回复
Unbounded range: [1.8 ,,可能是你地址的原因
祥祥看世界 2017-11-22
  • 打赏
  • 举报
回复
<profiles> <profile> <id>doclint-java8-disable</id> <activation> <jdk>[1.8,</jdk> </activation> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <additionalparam>-Xdoclint:none</additionalparam> </configuration> </plugin> </plugins> </build> </profile> </profiles> 改成1.6后,我发现这个包又要求jdk1.8+,我已经懵逼了
  • 打赏
  • 举报
回复
引用 13 楼 qq_37170381 的回复:
[quote=引用 12 楼 lye2000000_super 的回复:] Unable to get dependency information: Unable to read the metadata file for artifact 'com.google.code.gson:gson:jar': Invalid JDK version in profile 'doclint-java8-disable': Unbounded range: [1.8, for project com.google.code.gson:gson-parent com.google.code.gson:gson:jar:2.6.2 看了下,是jdk版本不兼容吧。。。你去查查那个jar包是支持那个版本的jdk
这是我从下载的包里的pom.xml里找到的配置信息 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> 是不是意味着只能用jdk1.6?我现在用的1.8[/quote] 很大的可能是这个问题,那你去找相应jdk的jar包吧
祥祥看世界 2017-11-22
  • 打赏
  • 举报
回复
引用 12 楼 lye2000000_super 的回复:
Unable to get dependency information: Unable to read the metadata file for artifact 'com.google.code.gson:gson:jar': Invalid JDK version in profile 'doclint-java8-disable': Unbounded range: [1.8, for project com.google.code.gson:gson-parent com.google.code.gson:gson:jar:2.6.2 看了下,是jdk版本不兼容吧。。。你去查查那个jar包是支持那个版本的jdk
这是我从下载的包里的pom.xml里找到的配置信息 <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> 是不是意味着只能用jdk1.6?我现在用的1.8
  • 打赏
  • 举报
回复
Unable to get dependency information: Unable to read the metadata file for artifact 'com.google.code.gson:gson:jar': Invalid JDK version in profile 'doclint-java8-disable': Unbounded range: [1.8, for project com.google.code.gson:gson-parent com.google.code.gson:gson:jar:2.6.2 看了下,是jdk版本不兼容吧。。。你去查查那个jar包是支持那个版本的jdk
祥祥看世界 2017-11-22
  • 打赏
  • 举报
回复
引用 10 楼 lye2000000_super 的回复:
[quote=引用 7 楼 qq_37170381 的回复:] [quote=引用 5 楼 lye2000000_super 的回复:] 从你设置的这几个位置下载不了你依赖的包。。。
但是编译后,这个包会下载到资源库呀[/quote] 是下载了文件夹还是下载了jar包?以前碰到过,,,,只建了文件目录没有jar包的情况,还有它依赖的包是不是能下载。。。[/quote] 下载了jar包,其他依赖的包都能下载
  • 打赏
  • 举报
回复
引用 7 楼 qq_37170381 的回复:
[quote=引用 5 楼 lye2000000_super 的回复:] 从你设置的这几个位置下载不了你依赖的包。。。
但是编译后,这个包会下载到资源库呀[/quote] 是下载了文件夹还是下载了jar包?以前碰到过,,,,只建了文件目录没有jar包的情况,还有它依赖的包是不是能下载。。。
祥祥看世界 2017-11-22
  • 打赏
  • 举报
回复
好烦啊,莫名其妙的错误,奔溃了
不清不慎 2017-11-22
  • 打赏
  • 举报
回复
就是重新下载啊,我经常遇到这个问题,就是这么处理的
祥祥看世界 2017-11-22
  • 打赏
  • 举报
回复
引用 5 楼 lye2000000_super 的回复:
从你设置的这几个位置下载不了你依赖的包。。。
但是编译后,这个包会下载到资源库呀
祥祥看世界 2017-11-22
  • 打赏
  • 举报
回复
<dependency> <groupId>com.aliyun.mns</groupId> <artifactId>aliyun-sdk-mns</artifactId> <version>1.1.8</version> <classifier>jar-with-dependencies</classifier> </dependency> 这是依赖的代码
  • 打赏
  • 举报
回复
从你设置的这几个位置下载不了你依赖的包。。。
祥祥看世界 2017-11-22
  • 打赏
  • 举报
回复
引用 3 楼 qq_37142346 的回复:
那是你没删干净,直接把这个文件夹删掉就可以了
我把aliyun整个文件夹都删了呀,再编译还是这样
不清不慎 2017-11-22
  • 打赏
  • 举报
回复
那是你没删干净,直接把这个文件夹删掉就可以了
祥祥看世界 2017-11-22
  • 打赏
  • 举报
回复
引用 1 楼 qq_37142346 的回复:
到本地仓库的该依赖目录下,删除不能读的jar包,然后重新运行就可以了
不行啊,这个方法试过了
不清不慎 2017-11-22
  • 打赏
  • 举报
回复
到本地仓库的该依赖目录下,删除不能读的jar包,然后重新运行就可以了

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧