fixes #5536
Merge pull request #5543 from dotCMS/issue-5536-buildwar.sh-not-deploying-plugins

fixes #5536