And what about Maven <extensions>? What is extension? Does it implement any
interface? What is contract for extensions? Is it executed during each maven
run (e.g. install, clean , site)? Is it possible to get instance of current
MavenProject?

It looks I need something Maven was designed for. Or am I thinking wrong if
I want to extend programatically set pro properties used to resolving pom?

Thanks for you thoughts.

Libor


On 6/15/07, Libor Kramoliš <[EMAIL PROTECTED]> wrote:

Thanks for your answer. But this solution does not satisfy.

It seems variables (expresions) in pom are resolved earlier than any
plugin is executed. Suggested solution works just for filtering of
resources. And also I do not know how to assign such plugin to *site*
life-cycle.

Libor


On 6/14/07, Steven Rowe <[EMAIL PROTECTED]> wrote:
>
> Hi Libor,
>
> Libor Kramoliš wrote:
> > Is it possible to make some properties hook to enhance set of
> > properties after pom reading and before starting of first goal
> > execution of any lifecycle/phase?
>
> You could take a look at the source for the properties-maven-plugin,
> which injects properties read from files:
>
>   <http://arsenalist.com/2007/02/07/maven-properties-plugin-download/ >
>
> If you bind this (or rahter your version of it) to an early phase, say,
> "initialize", it should achieve the desired effect.
>
> As far as version string parsing, this has to be implemented somewhere
> in the Maven source code, since Maven has to do version comparisons all
> the time.
>
> Anybody know in what source module Maven does this kind of
> decomposition?
>
> Steve
>


Reply via email to