create local maven repo of all tracker SDKs
There are multiple techniques for getting these, since various repos have various tricks to make scraping hard. For example:
- Maven Central (https://repo.maven.apache.org/maven2/ or https://repo1.maven.org/maven2/)
-
https://jcenter.bintray.com/ prepends a
:
in links in the index HTML, which javascript removes. This is easy enough to remove in a scraper script - https://jitpack.io in theory should behave like a regular Maven, but it resists direct downloads
Some potentially useful tricks:
- set
User-Agent:
headers to Gradle's or Maven's - use Maven directly to download:
mvn dependency:get -DremoteRepositories=file:///usr/share/maven-repo,https://jitpack.io,https://maven.google.com -Dartifact='com.github.bumptech.glide:glide:4.11.0' -Ddest=.
- use Gradle to download, and copy out of cache dir; set the cache dir using GRADLE_USER_HOME. Set
maven { url 'file:///usr/share/maven-repo' }
andmaven { url 'file:///path/to/local/copy' }
to avoid redownloading things. - search all public repos for a given groupId:artifactId
- search https://mvnrepository.com/