for /r %%a in (*.pom) do (
if exist "%%~dpna.jar" (
mvn deploy:deploy-file -DpomFile="%%a" -Dfile="%%~dpna.jar" -DrepositoryId=test_repo -Durl=http://156.80.169.167:8081/nexus/content/repositories/test_repo/
) else (
mvn deploy:deploy-file -DpomFile="%%a" -Dfile="%%a" -DrepositoryId=test_repo -Durl=http://156.80.169.167:8081/nexus/content/repositories/test_repo/
)
)
|