Uploaded image for project: 'Juneau'
  1. Juneau
  2. JUNEAU-96

Add Automatic-Module-Name metadata

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.0.0
    • 8.1.0
    • Code
    • None

    Description

      In order to make it easier to use Juneau with Java 9+ modules, it would be helpful to add Automatic-Module-Name metadata to the various artifact MANIFEST.MF files.

      This can be done with some simple adjustments to the pom.xml files, adding configuration instructions to the maven-bundle-plugin like so:

      <configuration>
          <instructions>
              <Automatic-Module-Name>...</Automatic-Module-Name>
          </instructions>
      </configuration>

      It would make sense to have a consistent naming pattern for the AMN values, such as:

      org.apache.juneau.{module name}

      For this, it might make sense to use the existing OSGi BundleSymbolicName values as a starting point. For example, org.apache.juneau.marshall. In cases where a hyphen is present, the hyphen will need to be changed to a dot (e.g. org.apache.juneau.marshall.rdf) since hyphens are not allowed in module names.

      The other consideration is that each module will need a unique Automatic-Module-Name.

      Attachments

        Activity

          People

            Unassigned Unassigned
            acoburn Aaron Coburn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: