Used < goal> use-latest-releases </ goal> for newer release(all non-SNAPSHOT) and replaces pom's version with the latest releases. I have added dependency(on which current project is dependent) in the pom.xml with < version> [anyVersionNumber] < /version>.
When I am running "mvn clean package", build is getting failed with error message Could not resolve dependencies for project < sample>:jar:0.1: Could not find artifact < some>:jar:[anyVerionNumber]
versions-maven-plugin supposed to update < version>[anyVersionNumber]</ version> with < version>[latest release]</ version> in my pom.xml.
Any idea how could I get latest release by using this maven plugin?