# service-parent **Repository Path**: agile-framework/service-parent ## Basic Information - **Project Name**: service-parent - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-17 - **Last Updated**: 2021-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 工程说明 ```shell # 切换分支 git submodule foreach git checkout feature/hainan/2.1.0 git submodule foreach git pull # 修改所有父子模块的版本号 mvn versions:set -DoldVersion=2.3.0 -DnewVersion=2.1.0 -DprocessAllModules=true -DallowSnapshots=true # 打包 mvn clean package -Dcheckstyle.skip=true -Dmaven.test.skip=true # 检出新分支 git submodule foreach git checkout -b <新分支> git submodule foreach git push <远程名> <分支名> ``` 删除模块 ```shell # 逆初始化模块,其中{MOD_NAME}为模块目录,执行后可发现模块目录被清空 git submodule deinit {MOD_NAME} # 删除.gitmodules中记录的模块信息(--cached选项清除.git/modules中的缓存) git rm --cached {MOD_NAME} # 提交更改到代码库,可观察到'.gitmodules'内容发生变更 git commit -am "Remove a submodule." ``` 打tar.gz ```shell mvn clean install -Dcheckstyle.skip=true -Dmaven.test.skip=true mvn clean package -PdeploymentPackage -pl am-common-deploy ``` 修改省份 ```shell mvn versions:set -DoldVersion=master -DnewVersion=hainan -DprocessAllModules=true -DallowSnapshots=true mvn versions:set-property -Dproperty=province.classifier -DnewVersion=hainan ``` 修改版本 ```shell mvn versions:set -DoldVersion=2.3.0 -DnewVersion=2.1.0 -DprocessAllModules=true -DallowSnapshots=true mvn clean ``` 为新版本创建分支 ```shell #切换主分支 git submodule foreach git checkout master #创建里程碑标签 git submodule foreach git tag {标签名字} git submodule foreach git push {远程名} --tags #创建新版本特征分支 git submodule foreach git checkout -b feature/{省份}/{版本号} ``` 拉取变更,合并 ```shell #切换到特征分支 git submodule foreach git checkout feature/{省份}/{版本号} #拉取变更 git submodule foreach git pull #编译、部署、测试,通过后进行合并操作 #切换回主分支 git submodule foreach git checkout master #合并代码 git submodule foreach git pull git submodule foreach git merge feature/{省份}/{版本号} ```