Skip to content

Add automatic module name manifest entry #43

@gkopff

Description

@gkopff

@spegelref You added the bits and pieces to make this OSGi aware. I wondered if you knew what the right thing to do is with regards to OSGi + JPMS?

The simplest first step towards supporting JPMS is to add an automatic module name entry to the MANIFEST.MF.

However, it looks like just configuring the maven-jar-plugin to do it, like so:

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>3.0.2</version>
        <configuration>
          <archive>
            <manifestEntries>
              <Automatic-Module-Name>com.fatboyindustrial.gson-javatime-serialisers</Automatic-Module-Name>
            </manifestEntries>
            <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
          </archive>
        </configuration>
      </plugin>

... doesn't work when bnd-maven-plugin is involved in creating the manifest.

Any ideas how to get bnd-maven-plugin and maven-jar-plugin to place nicely together?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions