Did you add an "execute" configuration for the maven-bundle-plugin in the
m2e lifecycle-mapping? if yes, what did you use for runOnIncremental and
runOnConfiguration? if not, the plugin will be executed only outside
eclipse or if you run it explicitly. By default the manifest goal is bound
to package i believe, but i'm in the same position than you i think: i need
the manifests right after compilation for testing purposes. Over here my
conclusion was that this can't work automatically in eclipse (so mapping to
execute won't work, i have to map it to ignore) because although it creates
the manifests, eclipse doesn't see them in the workspace, and if i do a
refresh of the projects so that eclipse sees them, it triggers another
compilation, which triggers another manifest generation = infinite cycle. I
might try to write a connector in the future, but i don't have the time
right now



From:   Andrew Mak <[email protected]>
To:     m2e-users <[email protected]>,
Date:   2012-10-18 03:56 PM
Subject:        [m2e-users] Generating OSGi manifest in maven build
Sent by:        <[email protected]>



Hi,

I'm new to m2e and Maven in general.  I'm trying to generate an OSGi
manifest file as part of my build.

Here's what I have done so far:  I configured in my POM (attached) to call
the "manifest" goal of the Maven bundle plugin, and associated it with the
"process-classes" phase.  It seems to work when I manually build the
project; it would create a proper OSGi manifest in the
target/classes/META-INF folder for me.

The problem is that it is only working when auto-build is turned off.  When
auto-build is on, there seems to be some other process that always
overwrites the manifest file with a version that has almost no content at
all.  Does anyone have some idea why it is behaving this way?

By the way, when the m2e build runs, what phase/goal is it actually
calling?




Thanks,

Andrew[attachment "pom.xml" deleted by Alejandro
Endo/MontrealMIR/BeldenCDT] _______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

DISCLAIMER:

Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.

Thank You.

<<inline: graycol.gif>>

_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to