I now have a PC working as a Sonatype Nexus server and a development environment. I know Nexus stores artifacts for proxy type
repository in SonatypRoot\sonatype-work\nexus\storage
, and Maven will use a local repository to store artifacts (default directory is C:\USERS\USER_NAME\.m2\repository
).
So the question comes when I'm using Maven with Nexus running on the same machine, because i have two copies of every artifact which is big waste of storage.
In Nexus's configuration tab for proxy type repository, there is an option named Override Local Storage Location.
My question is can I set this to my Maven's local repository?