Add workaround for http://jira.codehaus.org/browse/MRELEASE-812