Open pdsimanyi opened 2 years ago
Here's more information about the "http is an error" check.
This is an M1 Mac, macOS Monterey 12.1. mvn
is installed by homebrew.
The check that may be related to this error is in file
/usr/local/Cellar/maven/3.8.4/libexec/conf/settings.xml
in this code block:
<mirror>
<id>maven-default-http-blocker</id>
<mirrorOf>external:http:*</mirrorOf>
<name>Pseudo repository to mirror external repositories initially using HTTP.</name>
<url>http://0.0.0.0/</url>
<blocked>true</blocked>
</mirror>
As using http for maven repos was deemed a security issue (hence the changes in Maven) this should be changed. Changing from http to https is sufficient in the repository definition in the pom.xml file.
Expected Behavior
mvn compile
should succeed.Actual Behavior
mvn compile
producesSearch results suggest this is because maven's config for newest versions automatically blocks http repos, only allowing https.
Steps to Reproduce
rm -rf ~/.m2
first.Additional Information
For me, the change below fixes the problem. Please consider whether changing the repo reference from http to https suffices to fix this in general: Replacing
http://repo.jenkins-ci.org/releases
withhttps://repo.jenkins-ci.org/releases
worked for me.