Hello,

I've created a plugin that I'm using to create "installer" type
artifacts. That is, <packaging>installer</packaging> in POM's will use
my plugin's defined lifecycle mapping to build the desired artifact.

Now, I'm trying to get the builder to do some work "just before" the
package phase.

I've tried adding:

<prepare-package>org.apache.maven.plugin:somePlugin:someGoal</prepare-package>

to the <phases /> element inside the component descriptor that sets my
plugin's LifecycleMapping, but it's still never running the
<prepare-package> phase. In the debugger, it appears that the
DefaultLifecycleExecutor's pre-populated lifecycles, in particular the
<id>default</id> lifecycle, lacks this phase.

How can I modify the build lifecycle to do work "just before" the
package phase? Of course, everything works when I bind the desired
goal to the <test/> phase, but the goal I'm binding has nothing to do
with testing: that workaround is a kludge.

Can anybody explain how I can modify the lifecycle to add a "custom"
lifecycle phase? My <packaging /> is only binding a few lifecycle
phases as it is, but none of the existing (default lifecycle) phase
names means the same thing as what I want done.

Thanks,
--
Tommy Knowlton

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to