Merging with existing MANIFEST.MF looses Class-Path element
-----------------------------------------------------------

                 Key: MSHARED-166
                 URL: http://jira.codehaus.org/browse/MSHARED-166
             Project: Maven Shared Components
          Issue Type: Bug
          Components: maven-archiver
    Affects Versions: maven-archiver-2.4.1
            Reporter: Thorsten Möller
         Attachments: MANIFEST.MF_final_with_maven-bundle-plugin, 
MANIFEST.MF_final_without_maven-bundle-plugin, MANIFEST.MF_maven-bundle-plugin

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):

{code:xml}
<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>
{code}



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to