'Maven: Create Clean .m2 from Dirty .m2 to Support Offline Builds
I have a Maven project. One of the repositories is no longer available online.
My local environment has what it needs to build the project offline with -o.
What's a good way to capture only the files this project needs, to provide a copy of the artifacts to others to develop the project in the same offline manner?
I'd like to avoid providing my entire .m2 directory for efficiency.
It would be great if there was a way to save all of the build artifacts for a particular Maven project from a bloated working .m2 to a clean .m2, including only what's necessary to the project, to easily share with others.
Thanks!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
