eclipse配置maven
1.maven下载解压
2.环境变量配置:
path=C:\Program Files\maven\apache-maven-3.5.2\bin;%M2_HOME%\bin;
将系统原有的javapath放在最后
C:\ProgramData\Oracle\Java\javapath;
新建变量:
M2_HOME = C:\Program Files\maven\apache-maven-3.5.2(maven的解压目录)
MAVEN_HOME = C:\Program Files\maven\apache-maven-3.5.2(maven的解压目录)
3.命令行:mvn -v 查看maven是否安装成功
eclipse下安装maven
将插件hadoop-eclipse-plugin-2.6.0.jar下载后装到下面的示例目录
C:\Users\Administrator\eclipse\jee-oxygen\eclipse\dropins\hadoop-eclipse-plugin-2.6.0.jar
window>preferences>maven>User settings>user settings.browse
(maven解压目录下conf的settings.xml)
C:\Program Files\maven\apache-maven-3.5.2\conf\settings.xml
新建maven项目
jre system libary>bulid path>libaries.edit>install jar>edit>default VM arg...>
设置-Dmaven.mutiduleProjectDirectory=$M2_HOME
1.maven下载解压
2.环境变量配置:
path=C:\Program Files\maven\apache-maven-3.5.2\bin;%M2_HOME%\bin;
将系统原有的javapath放在最后
C:\ProgramData\Oracle\Java\javapath;
新建变量:
M2_HOME = C:\Program Files\maven\apache-maven-3.5.2(maven的解压目录)
MAVEN_HOME = C:\Program Files\maven\apache-maven-3.5.2(maven的解压目录)
3.命令行:mvn -v 查看maven是否安装成功
eclipse下安装maven
将插件hadoop-eclipse-plugin-2.6.0.jar下载后装到下面的示例目录
C:\Users\Administrator\eclipse\jee-oxygen\eclipse\dropins\hadoop-eclipse-plugin-2.6.0.jar
window>preferences>maven>User settings>user settings.browse
(maven解压目录下conf的settings.xml)
C:\Program Files\maven\apache-maven-3.5.2\conf\settings.xml
新建maven项目
jre system libary>bulid path>libaries.edit>install jar>edit>default VM arg...>
设置-Dmaven.mutiduleProjectDirectory=$M2_HOME