@echo off color 1f:menuecho -------------------------------------------------------echo + 1 - compile 2 - deploy 3 - version +echo ------------------------------------------------------- :inputset /p input=please select: if "%input%"== "1" goto compileif "%input%"== "2" goto deployif "%input%"== "3" goto versiongoto refresh :compileecho starting clean target directory and compile PRoject...mvn clean package -Dmaven.test.skip=true &&pauseexit :versionecho this Operation will change the project version, including the version of all the module projectsset /p version=please input a new version:call mvn clean versions:set -DnewVersion=%version%del /s pom.xml.versionsBackupecho successfully changed project version, the new version is: %version%pauseexit :deployecho starting compile project and deploy jar file to maven repository...mvn deploy -Dmaven.test.skip=true &&pauseexit :refreshecho invalid input &&pause &&cls &&goto menu功能介绍如下:
compile:编译deploy:发布到maven仓库versioin:修改工程及子工程版本号
新闻热点
疑难解答