遇到 eclipse中解决update maven之后jre被改成1.5的问题
照着下边的方法修改无效
http://blog.csdn.net/ludengji/article/details/21299987
问题并不是这个
真正的是
我的eclipse不是支持8.0的,也即是JDK1.8版本的
修改方法:
在pom.xml 的build节点下,修改或者追加(没有配置的情况下)
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
<useIncrementalCompilation>false</useIncrementalCompilation>
</configuration>
</plugin>
或者提高你的eclipse支持1.8的jdk
另外还有一个问题:
Failure to transfer org.apache:apache:pom:3 from http://uk.maven.org/maven2/ was cached
in the local repository, resolution will not be reattempted until the update
interval of uk has elapsed or updates are forced. Original error: Could not transfer
artifact org.apache:apache:pom:3 from/to uk (http://uk.maven.org/maven2/):
java.util.concurrent.TimeoutException: No response received after 60000
答案来自:
https://www.cnblogs.com/reimu/p/3746652.html
maven报错(http://repo.maven.apache.org/maven2): No response received after 60000
报错详情:Failure to transfer com.thoughtworks.xstream:xstream:pom:1.3.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact com.thoughtworks.xstream:xstream:pom:1.3.1 from/to central (http://repo.maven.apache.org/maven2): No response received after 60000 原因是连接不到中央仓库.导致报错.在setting中添加 <mirror> <id>uk.maven.org</id> <mirrorOf>central</mirrorOf> <name>UK Central</name> <url>http://uk.maven.org/maven2</url> </mirror> 设置镜像.屏蔽中央仓库地址,替换成http://uk.maven.org/maven2