Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6309

Use maven enforcer to ban imports

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.0, 4.15.0
    • Fix Version/s: 5.1.0, 4.16.0
    • Component/s: None
    • Labels:
      None

      Description

      We are already using mvn enforcer plugin for hbase version evaluations. We can extend it's usage to restrict-imports-enforcer-rule enforcer and ban imports from illegal packages (as per our project guidelines)

      e.g restrict usage of org.apache.commons.logging, com.google.common (in the presence of phoenix-thirdparty in Phoenix 5.x) etc.

      While doing backports from 4.x to master and vice-versa, it's quite common for these branch specific imports rules to get ignored by devs.

        Attachments

          Activity

            People

            • Assignee:
              vjasani Viraj Jasani
              Reporter:
              vjasani Viraj Jasani
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: