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

Add a banRepositories rule

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • 1.0-beta-1
    • Standard Rules
    • None

    Description

      This rule is needed so that we can enforce the "no repositories" requirement of Maven Central Repository.

      I would see something like (these would be defaults>

      <banRepositories>
      <allowSnapshots>true</allowSnapshots> <!-- if a repo can resolve -SNAPSHOTs, I'm ok with it being in the pom -->
      <allowReleases>false</allowReleases> <!-- if a repo can resolve releases, these two defaults would result in -SNAPSHOT only repositories being allowed by default -->
      <ignoreRepositories>
      <!-ignoreRepository>id of repository</ignoreRepository->
      </ignoreRepositories>
      </banRepositories>

      Attachments

        Activity

          People

            Unassigned Unassigned
            stephenc Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: