eclipse中解决update maven之后jre被改成1.5的问题


遇到 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




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值