Apache Maven: where do dependencies and libraries installed locally up?
java, maven
Solution
You are most likely thinking of your local repository where everything you install locally (and maven downloads for you from the central repository) is put for later usage.
The behavior you describe is intentional, and allows for building A once and then let B reference it whenever needed, without having to recompile A every time. This is usually very desirable, especially in teams or with large code bases.
Note, that for changing code you should be using -SNAPSHOT artifacts. They are treated slightly differently.
Problem
I'm building a Java project that has a dependency on a library. `mvn.bat clean install` produced the `target` subdirectories as expected, and the project built fine with `mvn.bat clean install` as well. What's not expected is that when I deleted the entire directory of the library, the outer project still built fine, although the library it depends on was gone. How does this work? UPDATE: Turns out Maven makes some sort of cache in `%USERPROFILE\.m2`.