[Solved] Could not transfer artifact XXX, transfer failed for XXX

After changing the MAC black apple system, the computer has been troubled by the problem that the package can’t be downloaded. It’s a headache. Today, I finally took the time to solve it and recorded the solution process

1. Check the configuration of Maven package and warehouse and confirm that there is no problem

2. It is useless to delete the file ending with. Lastupdated under the related dependent package folder in the warehouse

3. Adding virtual machine related parameters in idea Maven-Importing to solve the certificate problem is useless
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

4. Add virtual machine related parameters in idea Maven-Runner, and the problem is solved!
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true -DarchetypeCatalog=internal

END.

Similar Posts: