You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Wisen Tanasa (JIRA)" <ji...@codehaus.org> on 2015/02/09 14:51:18 UTC

[jira] (MPH-105) Effective pom aggregation is not triggered

     [ https://jira.codehaus.org/browse/MPH-105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wisen Tanasa updated MPH-105:
-----------------------------

    Description: 
Patch attached and contains JUnit.

The bug is happening when it hits this portion and `projects.get( 0 ).equals( project )` is returning false. In my JUnit, this is happening when a sub module's parent is not the aggregator pom.

EffectivePomMojo.java#90:
{code}
if ( projects.get( 0 ).equals( project ) && projects.size() > 1 )
{code}

Is the first check really necessary?

  was:
Patch attached and contains JUnit.

The bug is happening when it hits this portion and `projects.get( 0 ).equals( project)` is returning false. In my JUnit, this is happening when a sub module's parent is not the aggregator pom.

EffectivePomMojo.java#90:
{code}
if ( projects.get( 0 ).equals( project ) && projects.size() > 1 )
{code}

Is the first check really necessary?


> Effective pom aggregation is not triggered
> ------------------------------------------
>
>                 Key: MPH-105
>                 URL: https://jira.codehaus.org/browse/MPH-105
>             Project: Maven Help Plugin
>          Issue Type: Bug
>          Components: effective-pom
>    Affects Versions: 2.2
>         Environment: Maven 3.0.5
>            Reporter: Wisen Tanasa
>         Attachments: MPH-105.patch
>
>
> Patch attached and contains JUnit.
> The bug is happening when it hits this portion and `projects.get( 0 ).equals( project )` is returning false. In my JUnit, this is happening when a sub module's parent is not the aggregator pom.
> EffectivePomMojo.java#90:
> {code}
> if ( projects.get( 0 ).equals( project ) && projects.size() > 1 )
> {code}
> Is the first check really necessary?



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)