377688: Adapt Maven check to only run if target requires it. 
377688: Adapt Maven check to only run if target requires it. 

Follow-up transactions will include changes for the Oracle bundle build and removal of ant files in Tycho projects


Former-commit-id: c615ee150d0469cb9462c00f164f38db2b6a9cdf
bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs,bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs,bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs