我制作了一个bat文件,如:
mvn clean;
mvn包;
但它不起作用,只有第一个命令被执行。
有人能帮我吗?
发布于 2018-05-03 16:01:49
使用
call mvn clean
call mvn package
发布于 2018-05-03 17:01:11
在Windows中从批处理文件构建多个maven项目:
REM maven itself uses a batch file so each mvn must be preceded by "call"
REM the -f flag specifies where the pom.xml is found for the project
REM mvn install will save the target output to %userprofile%\.m2\repository ...
call mvn install -f c:\Users\John\workspace\PropertiesReader\pom.xml
call mvn install -f c:\Users\John\workspace\PropertiesWriter\pom.xml
https://stackoverflow.com/questions/-100008343
复制相似问题