# git-branch-version-maven-plugin **Repository Path**: deon/git-branch-version-maven-plugin ## Basic Information - **Project Name**: git-branch-version-maven-plugin - **Description**: maven插件,install、deploy时使用当前git分支名称作为版本号,本插件依赖git-commit-id-plugin获取git分支名称 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-09-29 - **Last Updated**: 2022-09-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # git-branch-version-maven-plugin #### 介绍 maven插件,install、deploy时使用当前git分支名称作为版本号,本插件依赖git-commit-id-plugin获取git分支名称 #### 示例 ``` 4.0.0 com.deon db 1-SNAPSHOT jar pl.project13.maven git-commit-id-plugin 3.0.1 true false com.deon.maven git-branch-version-maven-plugin 1.0-SNAPSHOT resetVersion set prepare-package ${git.branch}-SNAPSHOT ${git.branch}-SNAPSHOT ``` 若当前git分支为dev分支,package结果为db-dev-SNAPSHOT.jar, install结果为db-dev-SNAPSHOT.jar;