Current maven session contains banned plugin repository urls, please double check your pom or settings.xml

Viewed 1956

I tryed to deploy wildfly quickstart 17.0.0 final. But i had some problems with maven.

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedRepositories failed with message:
Current maven session contains banned repository urls, please double check your pom or settings.xml:
jboss-earlyaccess-repository - http://maven.repository.redhat.com/earlyaccess/all/
jboss-ga-repository - http://maven.repository.redhat.com/techpreview/all

 Current maven session contains banned plugin repository urls, please double check your pom or settings.xml:
jboss-earlyaccess-plugin-repository - http://maven.repository.redhat.com/earlyaccess/all/
jboss-ga-plugin-repository - http://maven.repository.redhat.com/techpreview/all

I dont know what should i do.

If you need any other information, plz let me know.

2 Answers

You need to use SSL replace http with https in your urls.

[ISSUE] We are facing the BannedRepositories error while building the mvn project.

org.apache.maven.plugins.enforcer.BannedRepositories failed with message:
Current maven session contains banned repository urls

[ANSWER]

We need to check the repository's URL in the settings.xml whether it is HTTP or HTTPS:
So, You should replace HTTP with HTTPS in your URLs as shown below.

------------------
<repository>
          <id>redhat-ga-repository</id>
          <name>Your XYZ repository</name>
          <url>https://maven.repository.xxx.com/ga/</url>
</repository>
---------------------
Related