将一下脚本保存在.bat文件执行,红色部分按实际情况修改: @echo off set groupId=com.xxxset artifactId=xxxset version=0.0.1set jarFilePath=D:/file/%artifactId%-%version%.jar set nexusUrl=http://xxx.xxx.xxx.xxx:8081/nexus/content/repositories/snapshotsset repositoryId=snapshots e…