上传工具elicpse和maven

安装maven
解压命令: unzip apache-maven-3.0.5-bin.zip -d /opt/modules/
配置maven环境变量
vi /opt/profile

变量生效:source /opt/profile
配置jar包依赖库
tar -zxf repository.tar.gz -C /root/.m2/
查看:ls /root/.m2/repository/
拷贝settings.xml到当前目录:[root@hadoop-senior .m2]# cp /opt/modules/apache-maven-3.0.5/conf/settings.xml .
安装eclipse
解压到当前目录 tar -zxf eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz
image.png
切换到linux系统并启动eclipse

修改eclipse配置
字符大小

快捷键

配置maven


创建maven工程

网友评论