I'm using eclipse indigo and maven 3.1
When I add a new dependency in pom.xml and run maven clean by right-clicking on pom.xml, maven is downloading missing jars to my local repository but not adding them to my list of referenced libraries.
After many hours of struggling I found out that I can solve this by running
mvn eclipse:eclipse -Dwtpversion=2.0
from command line each time after adding a new dependency. When I run maven clean from eclipse after doing this then the jars are added to referenced libraries.
Anybody know why this is happening like this?