Last active
October 6, 2020 19:57
-
-
Save naartjie/75b05218284b2e4bea5e9b4841763322 to your computer and use it in GitHub Desktop.
Revisions
-
naartjie revised this gist
Oct 6, 2020 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ ### Adding a global mirror `~/.m2/settings.xml`: ```xml <settings> <mirrors> <mirror> <id>thanks-bob</id> <url>https://a-well-meaning-corpo.com/nexus/repository/public</url> <mirrorOf>*</mirrorOf> </mirror> </mirrors> </settings> ``` -
naartjie revised this gist
Oct 6, 2020 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,10 @@ ### Download a dependency ```sh mvn dependency:get \ -Dartifact=org.springframework.cloud.stream.app:mongodb-sink-kafka-10:1.3.1.RELEASE:jar \ -Dtransitive=false \ -Ddest=gfy.jar ``` This way you can "force" Nexus to download a dependency from upstream, for example. -
naartjie created this gist
Oct 6, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ ### Download a dependency ```sh mvn dependency:get -Dartifact=org.springframework.cloud.stream.app:mongodb-sink-kafka-10:1.3.1.RELEASE:jar -Dtransitive=false -Ddest=gfy.jar ``` This way you can "force" Nexus to download a dependency from upstream, for example. If you're behind a corporate proxy, with TLS weirdness going on, add this for good measure: `-Dmaven.wagon.http.ssl.insecure=true`