Skip to main content

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

Why don't you use org.apache.felix:maven-bundle-plugin?

m-b-p / BND makes OSGi development easier in many ways :)

Cheers,
Rafał

On 02/02/2012 08:16 AM, PIYUSH BAJAJ wrote:
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




_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top