(using Maven 3.0.3 on Mac with Java 7)
When I run mvn dependency:analyze-duplicate , maven uses version 2.1 (regardless of whether 2.8 is available in my local repo or not) of the plugin and complains:
[ERROR] Could not find goal 'analyze-duplicate' in plugin org.apache.maven.plugins:maven-dependency-plugin:2.1 among available goals unpack-dependencies,....
When I run it as mvn org.apache.maven.plugins:maven-dependency-plugin:2.8:analyze , it works fine.
I would suggest that maven always reverts to the latest version (even if it is not already in the local repo) if no version is explicitly specified?
What am I missing? Thank you all for your time to respond.
source share