Maven2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development.
I have a pom.xml file that defines the dependenc
pom.xml
What works in our project is what Archimedes Trajano wrote, but we had in our .m2/settings.xml something like this:
nexus * http://url_to_our_repository
and the * should be changed to central. So if his answer doesn't work for you, you should check your settings.xml