![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
maven
文章平均质量分 54
code_agent
代码特工
展开
-
maven常用标签
maven常用标签<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <!-- 指定当前pom的版本 --> <mo原创 2021-01-09 13:27:17 · 386 阅读 · 0 评论 -
Snapshot和Release版本
Snapshot和Release版本1.snapshot版本自动获取服务器最新代码原理我们在提交snapshot版本时 mvn deploy,会提交一个带时间搓的版本号!maven会根据模块的版本号(pom文件中的version)中是否带有“-SNAPSHOT”(注意这里必须是全部大写)来判断是快照版本还是正式版本。如果是快照版本,那么在mvn deploy时会自动发布到私服的快照版本库中;如果是正式发布版本,那么在mvn deploy时会自动发布到正式版本库中。我们下载依赖到本地仓库时,也会带原创 2021-01-08 21:47:48 · 3254 阅读 · 0 评论 -
Maven生命周期
Maven生命周期Lifecycle ReferenceThe following lists all build phases of the default, clean and site lifecycles, which are executed in the order given up to the point of the one specified.1.Clean LifecyclePhaseDescriptionpre-clean在实际项目清理之前执行所需的过程原创 2021-01-08 21:26:37 · 67 阅读 · 0 评论 -
Maven 打包 package install deploy 区别
Maven 打包 package install deploy 区别1.打包区别mvn package:打包到本项目,一般在项目target目录下。mvn install:打包到本地仓库,如果没设置Maven本地仓库,一般在用户/.m2目录下。mvn deploy:打包上传到远程仓库,如:私服nexus等,需要配置pom文件。2.打包过程mvn clean package依次执行:clean、resources、compile、testResources、testCompile、test原创 2021-01-08 21:09:51 · 551 阅读 · 0 评论