>As far as I understand, when I add a rule to the root it will be
checked in
>every module's pom. So the rule will fail in all the poms except 'war'
(but
>only if a good profile was used). Is that correct?

Yes.

>I was just wondering whether there is a possibility to check if the
rule was
>OK at least once in a tree - not for every single pom. And if it failed
in
>every pom then use the value in <fail></fail> to fail the compilation
or
>not.

Ugh. That would require aggregation and then attempting to walk all the
reactors at once. The aggregation and requiresDependencyResolution don't
work well together in Maven when bound to a lifecycle. Either way it's a
whole new rule so it can't be done now.

>Well, if I have to check the properties in the modules where they
appear
>I'll live with it   :-)
>But if you have any idea for my case, please let me know about it.

You could use properties to enable/disable the rule and/or value check.


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

Reply via email to