-
maven
项目依赖管理
maven项目可以转换为其他项目格式
-
maven的运行流程
先去本地仓库找需要jar包, 找不到去远程仓库下载
默认的本地仓库 用户目录下的 .m2文件夹下
-
settings 文件的配置
本地仓库位置
server标签
mirror 配置镜像
-
pom文件
modelVersion
groupId
artifactId
versionpackaging : pom jar war
properties
dependencies/dependency
dependencyManagement/dependencies/dependency
distributionManagement /repository snapshotRepository
build/plugins/plugin
-
命令
clean : 清理
package : 打包
install : 部署到本地
deploy : 部署到远程仓库
-
scope
jar包的生命周期
表明当前jar存在的时间
-
nexus库的安装使用
下载软件, 解压
找到 nexus-3xx /bin 运行 nexus /install nexus /start (启动时间较长, 稍等)
**第一次登陆密码 在snapshot /nexus3/admin.password
maven初学
最新推荐文章于 2024-06-13 21:45:59 发布