fix issue 1482 where Maven will report build successful if forked JVM
exit with error.
Merge pull request #2 from alvinlin123/master

Fixed issue 1482