当前 Maven 会话包含禁止的插件存储库 url,请仔细检查您的 pom 或 settings.xml
Current maven session contains banned plugin repository urls, please double check your pom or settings.xml
我尝试部署 wildfly quickstart 17.0.0 final。但是我在使用 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
我不知道该怎么办。
如果您需要任何其他信息,请告诉我。
您需要使用 SSL 将网址中的 http 替换为 https。
[问题]
我们在构建 maven 项目时遇到 Banned Repositories 错误。
org.apache.maven.plugins.enforcer.BannedRepositories failed with message:
Current maven session contains banned repository urls
[答案]
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>
---------------------
我尝试部署 wildfly quickstart 17.0.0 final。但是我在使用 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
我不知道该怎么办。
如果您需要任何其他信息,请告诉我。
您需要使用 SSL 将网址中的 http 替换为 https。
[问题] 我们在构建 maven 项目时遇到 Banned Repositories 错误。
org.apache.maven.plugins.enforcer.BannedRepositories failed with message:
Current maven session contains banned repository urls
[答案]
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>
---------------------