[JENKINS-11964] Enable single module build for Maven3.

 Pull Request #9 has been the source for the implementation. However, only parts that was needed to enable single module build for Maven3 projects have been used.
Merge pull request #29 from goober/master

[JENKINS-11964] Enable single module build for Maven3.