set homepath=%userprofile%
set a=%1
set b=%2
set c=%3
set uuid=%4
set zipDirectory=%5
set pluginDirectory=%6
cd %homepath%\%a%
mvn archetype:generate -DarchetypeCatalog=file://%homepath%/.m2/repository
到这里为止一切都正常,但是命令行停止执行了。它不会打印出1,也不会执行后续的命令。
1
c
b
c
%uuid%
Y
cd %homepath%\%a%\%b%
mvn clean install
cd %homepath%\%a%\%b%\%b%-plugin\target
jar -xvf %zipDirectory%
cd %homepath%\%a%\%b%\%b%-plugin\target\META-INF\maven\%c%\%b%-plugin
copy pom.xml + %pluginDirectory%
cd %pluginDirectory%
rename pom.xml %b%-plugin-1.0.0.pom
问题: Maven中是否有任何我不知道的东西会中断批处理过程? 它是否不理解使用单个数字1来执行命令?
call mvn ...
运行mvn
和其他批处理文件。 - khmarbaisejar
、copy
和rename
这样的命令也是一样的吗? - Martin Erlic