maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Baruch Sadogursky <jbar...@sadogursky.com>
Subject Running mojo programmatically without build
Date Thu, 05 Aug 2010 22:44:50 GMT
Hi, folks!

I am trying to run some mojo without executing the whole build.
In general here's what I do:
1. Build PluginDescriptor from META-INF/maven/plugin.xml
2. Build MavenSession
3. Add Mojo instance to Plexus
4. BuildPluginManager.executeMojo()

For some reason the parameters in Mojo aren't populated with defalt values
and/or expressions (although the MojoDescriptor contains all the
parameters).

Versions:
Plexus container 1.5.4
BuildPluginManager, MavenPluginManager and MavenSession are from maven-core
3.0-beta-1
Mojo and Plugin Descriptors are from maven-plugin-api 3.0-beta-1

Any suggestions will be greatly appreciated.
Thanks in advance.
-- 
Best Regards,
Baruch

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message