Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Running a custom plugin before BuildQualifierMojo

No, I do not believe it is possible to run any additional plugin goals
before BuildQualifierMojo. This is a general Maven limitation, there is
nothing we can do about it in Tycho.

--
Regards,
Igor

On 11-07-11 4:11 PM, Scott, Rich wrote:
I need to update a pom so that a goal from a custom plugin is run before
BuildQualifierMojo. This new goal will determine the proper version
qualifier, and then update build.properties setting
“forceContextQualifier” so that BuildQualifierMojo will assign the
specified qualifier.

My problem is that since BuildQualifierMojo is assigned to the validate
phase, I have not been able to find any way to insert a goal in the
processing stream before it. Validate is the first phase, and as I read
the documentation, goals assigned in the packaging run before those
configured in the pom. The techniques that I have seen for adding a
parallel lifecycle do not help, since the parallel lifecycle needs to
have a defining goal inserted in the lifecycle.

Is it possible to define a custom goal that will be run before the
packaging specific goals in the “validate” phase?

Thanks in advance

Rich



Back to the top