Wednesday, January 12, 2022

Configure Maven to use HTTPS

 Open the file $MAVEN_HOME/conf/settings.xml


And configure in the <mirrors>...</mirrors> Section

<mirror>
  <id>central-secure</id>
  <url>https://repo.maven.apache.org/maven2</url>
  <mirrorOf>central</mirrorOf>
</mirror>