Uploaded image for project: 'Maven Shared Components'
  1. Maven Shared Components
  2. MSHARED-166

Merging with existing MANIFEST.MF looses Class-Path element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • maven-archiver-2.4.1
    • None
    • maven-archiver
    • None

    Description

      I'm using the maven-bundle-plugin together with the maven-jar-plugin (to create OSGi meta data). The plugin configuration is as follows (excerpt from effective POM):

      <plugin>
              <groupId>org.apache.felix</groupId>
              <artifactId>maven-bundle-plugin</artifactId>
              <version>2.1.0</version>
              <extensions>true</extensions>
              <executions>
                <execution>
                  <goals>
                    <goal>manifest</goal>
                  </goals>
                </execution>
              </executions>
              <configuration>
                <instructions>
                  <Export-Package>org.mindswap.*</Export-Package>
                  <Private-Package>impl.*</Private-Package>
                  <RequiredExecutionEnvironment>J2SE-1.5</RequiredExecutionEnvironment>
                </instructions>
              </configuration>
            </plugin>
            <plugin>
              <artifactId>maven-jar-plugin</artifactId>
              <version>2.3.1</version>
              <configuration>
                <archive>
                  <manifestFile>/Users/thorsten/development/on/owls-api/target/classes/META-INF/MANIFEST.MF</manifestFile>
                  <compress>true</compress>
                  <manifest>
                    <addClasspath>false</addClasspath>
                    <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
                    <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                  </manifest>
                </archive>
              </configuration>
            </plugin>
      

      Attachments

        1. MANIFEST.MF_maven-bundle-plugin
          7 kB
          Thorsten Möller
        2. MANIFEST.MF_final_without_maven-bundle-plugin
          1.0 kB
          Thorsten Möller
        3. MANIFEST.MF_final_with_maven-bundle-plugin
          8 kB
          Thorsten Möller

        Activity

          People

            Unassigned Unassigned
            twwwt Thorsten Möller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: