Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-396

Faulty banned repositories

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0
    • None
    • Standard Rules
    • None

    Description

      To start with, the sample XML on https://maven.apache.org/enforcer/enforcer-rules/bannedRepositories.html is invalid.

      After correcting the XML, if I choose to whitelist, I get

      Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce (enforce-banned-repositories) on project dummy: Unable to parse configuration of mojo org.apache.maven.plugins:maven-enforcer-plugin:3.0.0:enforce for parameter allowedRepositories: Cannot create instance of interface org.apache.maven.enforcer.rule.api.EnforcerRule: org.apache.maven.enforcer.rule.api.EnforcerRule.<init>()

      Then I try unsuccessfully to blacklist http://0.0.0.0/* and others. The dependency:list-repositories goal on the other hand manages to find this repository.

      pom.xml

      Attachments

        1. pom.xml
          3 kB
          Delany

        Activity

          People

            Unassigned Unassigned
            delany Delany
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: