Maven搭建hadoop环境报Missing artifact jdk.tools:jdk.tools:jar:1.8

使用Maven搭建hadoop环境,在pom.xml中报错:Missing artifact jdk.tools:jdk.tools:jar:1.8

问题原因:没有配置jdk中tools.jar

解决方法:

在pom.xml中添加如下配置


	org.apache.hadoop
		hadoop-mapreduce-client-core
		2.7.1
	
	
		jdk.tools
		jdk.tools
	
	


	jdk.tools
	jdk.tools
	1.8
	system
	${JAVA_HOME}/lib/tools.jar

你可能感兴趣的:(Maven搭建hadoop环境报Missing artifact jdk.tools:jdk.tools:jar:1.8)