Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5925

osgicheck-maven-plugin: Add check for packages with versions but without explicit provider/consumer type information

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Utils
    • None

    Description

      It would be nice to also have a check in https://github.com/apache/felix/tree/trunk/tools/osgicheck-maven-plugin for packages with a dedicated version which do not explicitly state, whether they are provider or consumer type. Although there is a default (ConsumerType) as specified in https://osgi.org/javadoc/osgi.annotation/7.0.0/org/osgi/annotation/versioning/ProviderType.html it is reasonable to enforce a conscious decision (i.e. an explicit annotation) for the following reasons:

      • people tend to forget to think about this for new API/SPI
      • the default used to be different with the same-named bnd annotation in the past therefore relying on the default is very error prone

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: