Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Copying MANIFEST.MF to generated bundle

Hi Experts,

I have a OSGi plugin project and I'm creating a jar using 'mvn install'

Packaging type = 'jar'

I have done few changes in MANIFEST.MF in this plugin, which i want to bundle/copy inside this jar. 

Defined resource as:
                         <resource>
<directory>${basedir}/META-INF</directory>
<includes>
<include>MANIFEST.MF</include>
</includes>
<targetPath>META-INF</targetPath>
</resource>

But the problem is original MANIFEST.MF is not copied to META-INF folder of the jar, rather it's a empty MANIFEST with just some basic information like:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: I045564
Build-Jdk: 1.6.0_29


If i don't give <targetPath> tag, then original MANIFEST.MF is copied to root directory of the jar rather in META-INF folder.

How do i overwrite plugin MANIFEST.MF on META-INF/MANIFEST.MF ?

Please help.

Best Regards,
Piyush



Back to the top