Skip to content

Instantly share code, notes, and snippets.

View alexkubica's full-sized avatar
👨‍💻
Coding!

Alex Kubica 🇮🇱 alexkubica

👨‍💻
Coding!
View GitHub Profile
@alexkubica
alexkubica / mvn-whiten.md
Last active June 15, 2020 12:30
Download maven artifacts with sources and javadocs into a chosen destination

NEW WAY:

Make sure you have JDK and maven installed.
Create a pom.xml file with:

mvn -B archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.cooldomain -DartifactId=mvn-whiten

It will create a new maven project but you only need the POM file.
Search your packages in the central maven repository and add them to the POM's dependencies.
Run on the same directory: