maven2: how do I get/set the location for the local .jar cache?
I'm trying to get the hibernate-sqlite project to work. I downloaded it and can run
mvn eclipse:clean
and
mvn eclipse:eclipse
like the instructions say. And I can import the project into Eclipse. But when I look at the project in Eclipse, it can't find the jars that Maven开发者_如何学Go has downloaded. Where does Maven put the .jars? I don't know where this is, if I knew I could set M2_HOME in eclipse and it would all work.
Linux: /home/<user>/.m2
Windows: C:\Documents and Settings\<user>\.m2
Also, you may want to look into using the m2eclipse plugin if you are doing Maven development with Eclipse.
I found it, maven looks in its settings.xml under
<settings><localRepository>{PathHere}</localRepository></settings>
which if not found, defaults to ~/.m2/repository as Taylor L's answer mentions.
精彩评论