Hi Andrew,
did you find a solution for your problem, yet?
I'm getting the same OutOfMemory Exception when I try to deploy a WAR-Archive (~35 MB) to a Nexus repository. When calling mvn deploy on the command line I have to set some MAVEN_OPTS to get it succeed.
I tried to set the MAVEN_OPTS parameter in Jenkins Config, in the Build-Project Config and in the operation system of my Jenkins host. None of that solves my problem.
It looks like the Jenkins MAVEN_OPTS settings are not used for the post build deployment task.
Perhaps, you or some other members of this group know what to do.
Regards,
Torsten