My maven plugin uses the following code to find the latest version of the current artifact and to resolve it:
try { V