配置maven

2018-01-29  本文已影响0人  唯师默蓝

安装maven

下载--配置环境变量

MyEclipse:
1.D:\maven\apache-maven-3.5.2\conf 这个目录下修改settings.xml
第55行<localRepository>D:/maven-repo</localRepository>设置本地仓库的位置
第153行 <mirror>
<id>nexus-aliyun</id>
<mirrorOf>*</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
设置阿里云中央仓库的位置

2.MyEclipse -- Window -- Preferences -- maven 
  (1)-- Installations -- add -- "D:\maven\apache-maven-3.5.2" -- apply
  (2)-- User Settings -- Global Settings -- Browse -- "D:\maven\apache-maven-3.5.2\conf\settings.xml"

pom.xml 是maven工程的核心文件
jar包依赖
插件的依赖
如何编译项目
生命周期
profile
repository
工程打成jar包等

上一篇 下一篇

猜你喜欢

热点阅读