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

Maven Bundle Plugin removes entries from manifest since version 5

    XMLWordPrintableJSON

Details

    Description

      In my project, I set a custom value in the manifest via the Maven JAR plugin:

      <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-jar-plugin</artifactId>
         <version>3.2.0</version>
         <configuration>
            <archive>
               <manifestEntries>
                  <Multi-Release>true</Multi-Release>
               </manifestEntries>
               <addMavenDescriptor>false</addMavenDescriptor>
            </archive>
         </configuration>
      </plugin>

      When using the Maven Bundle Plugin 4.2.1, the multi-release entry will be in the final manifest:

      <plugin>
         <groupId>org.apache.felix</groupId>
         <artifactId>maven-bundle-plugin</artifactId>
         <version>4.2.1</version>
         <extensions>true</extensions>
      </plugin>
      

      However, when updating the Maven Bundle Plugin to the latest version 5.1.1, the multi-release entry will be removed from the final manifest.

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              pmwmedia Martin Winandy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: