Fixed JERSEY-1278.

- Fix ported from Jersey 1.x.

Change-Id: I7f624f3e240c4e143a52c940a28b91da150600e7
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>
Merge "Fixed JERSEY-1278."
JERSEY-2201: "Upgrade to Maven 3.1 at Hudson"
(Plugin version updates: https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound)

Change-Id: Id348df3106744a2e6ffcf88e4d24ef7d456b44a4