title: Maven: How to extract (not unpack) dependent artifacts to a separate folder from local repository
body: <p>Scenario: I need to prepare a usable and concise local repository for another developer who can't access maven public repository via network. But the local repository on my computer is about 20G which contains a large part of artifacts that is not relevant to the project.</p>
  
  <p>AFAIK I can use <code>mvn dependency:resolve</code> to download only the dependencies to a new local repository location but the network traffic is limited and I don't want to waste time waiting for the download to complete. I googled a while and I tried <code>dependency:copy-dependencies</code> but it only copies the jar file, not including the pom.xml files and other meta-files in the artifact.</p>
  
  <p>I know this work-around is kind of against the maven spirit, but sometimes we all need to work offline.</p>