Second issue cause found: maven-javadoc-plugin. With it (tried with v2.6 and
v2.5) just listed in reporting plugins section with no additional
configuration build fails to resolve intermodule dependencies. Without it,
build is successful. Multiple maven plugins have reported issues of failure
to resolve intermodule dependencies (
http://jira.codehaus.org/browse/MDEP-195 ,
http://jira.codehaus.org/browse/MNG-4233 , ... ) - maybe at least some of
those people were using plain maven-javadoc-plugin.

Regards,
Stevo.

On Fri, Aug 21, 2009 at 12:30 PM, Stevo Slavić <[email protected]> wrote:

> For the second topic, I've found that maven-release-plugin was messing my
> pom. scm section of a parent module references custom properties, and when
> release plugin tags a release as well as when it prepares/commits for next
> development iteration it saves scm section in expanded form which is not ok,
> since modules inheriting parent module and thus it's scm section as well
> were supposed to adjust parent defined scm just by specifying a child module
> specific property value. I've found out that I'm not the only one
> experiencing this issue <http://jira.codehaus.org/browse/MRELEASE-128>,
> and it has quite some history, dating back from 2006.
>
> Regards,
> Stevo.
>
>
> On Fri, Aug 21, 2009 at 11:07 AM, Stevo Slavić <[email protected]> wrote:
>
>> Hello maven users,
>>
>> A project with two modules M1 & M2 and their aggregating parent module A,
>> where A has itself a parent module P builds successfully if run without site
>> phase/goal (e.g. "mvn clean verify"), but mysteriously fails otherwise (e.g.
>> "mvn clean verify site"). M2 has dependency to M1, and maven prints good
>> build order, but somehow when it comes to build M2, M1 doesn't get resolved
>> although M1 should be present at least in build reactor. Maven used is
>> 2.2.1, but same happened even if I revert to 2.1.0. Site plugin configured
>> in plugin management section of P's pom is 2.0.1, but build fails even with
>> 2.0-beta-7. Neither of the pom's contains no assembly or artifact
>> (de)attaching mambo jumbo, in other words they are very simple ones. Any
>> advice is welcome.
>>
>> One other topic bothering me is how does maven do property expansion,
>> especially in case if one has module hierarchy like described for previous
>> topic, and in module P one property X, and property Y referencing property X
>> value, and then in module M1 definition of the property with name X. Module
>> M1 doesn't have explicit definition of property Y, IMO it should be
>> inherited but I'm expecting in module M1 property Y to be expanded using
>> locally defined property X, thus overriding one defined in parent pom
>> hierarchy. This doesn't seem to happen.
>>
>> Regards,
>> Stevo.
>>
>
>

Reply via email to