I've used standard maven command mvn clean install
and according to logs (in the same console window) dependencies were loaded and artifacts were installed to my dedicated directory for maven repository P:\.m2\repository
. Maven build process succeeded.
I'm using maven 2.2.1
Here is the problem. Repository directory is empty. What I'm missing?
Thanks.
Some reasons:
I suggest to run mvn
again with the option -X
. Running mvn clean -X
should be enough to see the paths which it uses to locate dependencies (install
will download many more files but we need to see only one).
Note: P:\
sounds like a network drive. Even if this is your home folder (i.e. not shared with other people), this isn't a very good idea since it will cause a lot of network traffic and make your builds slow and brittle (in case of network problems).