You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Luca (JIRA)" <ji...@codehaus.org> on 2009/03/30 12:20:12 UTC

[jira] Created: (MNG-4118) Execution order of report plugins is arbitrary if inheritance is involved

Execution order of report plugins is arbitrary if inheritance is involved
-------------------------------------------------------------------------

                 Key: MNG-4118
                 URL: http://jira.codehaus.org/browse/MNG-4118
             Project: Maven 2
          Issue Type: Bug
          Components: Plugins and Lifecycle, Sites & Reporting
    Affects Versions: 2.1.0, 2.0.10
         Environment: ubuntu 8.10
maven 2.10
 /opt/development/tools/apache-maven-2.1.0/bin/mvn --version
Warning: JAVA_HOME environment variable is not set.
Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
Java version: 1.6.0_10
Java home: /usr/lib/jvm/java-6-sun-1.6.0.10/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"

            Reporter: Luca
         Attachments: Regression.tgz, sitefull.log.tgz

this issue is the clone of http://jira.codehaus.org/browse/MNG-3808

the output of 
/opt/development/tools/apache-maven-2.1.0/bin/mvn clean install site -X  > sitefull.log
is in attachment with the whole project.
the command was executed in Regression/ComponentB

Feel free to ask more info!
thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Moved: (MSITE-402) Execution order of report plugins is arbitrary if inheritance is involved

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Casey moved MNG-4118 to MSITE-402:
---------------------------------------

    Affects Version/s:     (was: 2.1.0)
                           (was: 2.0.10)
                       2.0
        Fix Version/s:     (was: 2.1.1)
          Component/s:     (was: Sites & Reporting)
                           (was: Plugins and Lifecycle)
           Complexity:   (was: Intermediate)
                  Key: MSITE-402  (was: MNG-4118)
              Project: Maven 2.x Site Plugin  (was: Maven 2)

> Execution order of report plugins is arbitrary if inheritance is involved
> -------------------------------------------------------------------------
>
>                 Key: MSITE-402
>                 URL: http://jira.codehaus.org/browse/MSITE-402
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: ubuntu 8.10
> maven 2.10
>  /opt/development/tools/apache-maven-2.1.0/bin/mvn --version
> Warning: JAVA_HOME environment variable is not set.
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_10
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.10/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"
>            Reporter: Luca
>         Attachments: Regression.tgz, sitefull.log.tgz
>
>
> this issue is the clone of http://jira.codehaus.org/browse/MNG-3808
> the output of 
> /opt/development/tools/apache-maven-2.1.0/bin/mvn clean install site -X  > sitefull.log
> is in attachment with the whole project.
> the command was executed in Regression/ComponentB
> Feel free to ask more info!
> thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-4118) Execution order of report plugins is arbitrary if inheritance is involved

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-4118:
------------------------------

    Fix Version/s: 2.1.1

confirmed. Further investigation is needed and the IT for 3808 enhanced.

> Execution order of report plugins is arbitrary if inheritance is involved
> -------------------------------------------------------------------------
>
>                 Key: MNG-4118
>                 URL: http://jira.codehaus.org/browse/MNG-4118
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, Sites & Reporting
>    Affects Versions: 2.0.10, 2.1.0
>         Environment: ubuntu 8.10
> maven 2.10
>  /opt/development/tools/apache-maven-2.1.0/bin/mvn --version
> Warning: JAVA_HOME environment variable is not set.
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_10
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.10/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"
>            Reporter: Luca
>             Fix For: 2.1.1
>
>         Attachments: Regression.tgz, sitefull.log.tgz
>
>
> this issue is the clone of http://jira.codehaus.org/browse/MNG-3808
> the output of 
> /opt/development/tools/apache-maven-2.1.0/bin/mvn clean install site -X  > sitefull.log
> is in attachment with the whole project.
> the command was executed in Regression/ComponentB
> Feel free to ask more info!
> thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-402) Execution order of report plugins is arbitrary if inheritance is involved

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=174148#action_174148 ] 

John Casey commented on MSITE-402:
----------------------------------

I've traced the handling of reports through POM inheritance (verified using help:effective-pom), through DefaultPluginManager and DefaultLifecycleExecutor (used to load and gather the reports list when the site plugin requires them), and finally found something here:

http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-site-plugin/src/main/java/org/apache/maven/plugins/site/AbstractSiteRenderingMojo.java

Take a look at the locateReports(..) method, around line 297. This uses a HashMap to reorganize the report instances for execution against a particular Locale. If no custom locales are configured, the english locale is used by default. This is what reorders the reports collection, resulting in the weird behavior you're seeing.

> Execution order of report plugins is arbitrary if inheritance is involved
> -------------------------------------------------------------------------
>
>                 Key: MSITE-402
>                 URL: http://jira.codehaus.org/browse/MSITE-402
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>         Environment: ubuntu 8.10
> maven 2.10
>  /opt/development/tools/apache-maven-2.1.0/bin/mvn --version
> Warning: JAVA_HOME environment variable is not set.
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_10
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.10/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"
>            Reporter: Luca
>         Attachments: Regression.tgz, sitefull.log.tgz
>
>
> this issue is the clone of http://jira.codehaus.org/browse/MNG-3808
> the output of 
> /opt/development/tools/apache-maven-2.1.0/bin/mvn clean install site -X  > sitefull.log
> is in attachment with the whole project.
> the command was executed in Regression/ComponentB
> Feel free to ask more info!
> thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-4118) Execution order of report plugins is arbitrary if inheritance is involved

Posted by "Luca (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=171377#action_171377 ] 

Luca commented on MNG-4118:
---------------------------

sorry forgot...
as you can see in the log, the last executed report plugin is  Source Xref, instead of the expected qa lab.
all reports plugin are specified in the parent

> Execution order of report plugins is arbitrary if inheritance is involved
> -------------------------------------------------------------------------
>
>                 Key: MNG-4118
>                 URL: http://jira.codehaus.org/browse/MNG-4118
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Plugins and Lifecycle, Sites & Reporting
>    Affects Versions: 2.0.10, 2.1.0
>         Environment: ubuntu 8.10
> maven 2.10
>  /opt/development/tools/apache-maven-2.1.0/bin/mvn --version
> Warning: JAVA_HOME environment variable is not set.
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_10
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.10/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"
>            Reporter: Luca
>         Attachments: Regression.tgz, sitefull.log.tgz
>
>
> this issue is the clone of http://jira.codehaus.org/browse/MNG-3808
> the output of 
> /opt/development/tools/apache-maven-2.1.0/bin/mvn clean install site -X  > sitefull.log
> is in attachment with the whole project.
> the command was executed in Regression/ComponentB
> Feel free to ask more info!
> thanks

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MSITE-402) Execution order of report plugins is arbitrary if inheritance is involved

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MSITE-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274193#comment-274193 ] 

Herve Boutemy commented on MSITE-402:
-------------------------------------

first level of fix in [r1150948|http://svn.apache.org/viewvc?rev=1150948&view=rev]: now it is ok for Maven 3, but not Maven 2 for the moment

> Execution order of report plugins is arbitrary if inheritance is involved
> -------------------------------------------------------------------------
>
>                 Key: MSITE-402
>                 URL: https://jira.codehaus.org/browse/MSITE-402
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0
>         Environment: ubuntu 8.10
> maven 2.10
>  /opt/development/tools/apache-maven-2.1.0/bin/mvn --version
> Warning: JAVA_HOME environment variable is not set.
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_10
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.10/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"
>            Reporter: Luca
>         Attachments: Regression.tgz, sitefull.log.tgz
>
>
> this issue is the clone of http://jira.codehaus.org/browse/MNG-3808
> the output of 
> /opt/development/tools/apache-maven-2.1.0/bin/mvn clean install site -X  > sitefull.log
> is in attachment with the whole project.
> the command was executed in Regression/ComponentB
> Feel free to ask more info!
> thanks

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MSITE-402) Execution order of report plugins is arbitrary if inheritance is involved

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MSITE-402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MSITE-402.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 3.1
         Assignee: Herve Boutemy

tested in "full-reporting" IT

works with Maven 3 and Maven 2.2.2+ (not yet released, but MNG-5140 fixed)
                
> Execution order of report plugins is arbitrary if inheritance is involved
> -------------------------------------------------------------------------
>
>                 Key: MSITE-402
>                 URL: https://jira.codehaus.org/browse/MSITE-402
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: inheritance
>    Affects Versions: 2.0
>         Environment: ubuntu 8.10
> maven 2.10
>  /opt/development/tools/apache-maven-2.1.0/bin/mvn --version
> Warning: JAVA_HOME environment variable is not set.
> Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
> Java version: 1.6.0_10
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.10/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.27-11-generic" arch: "i386" Family: "unix"
>            Reporter: Luca
>            Assignee: Herve Boutemy
>             Fix For: 3.1
>
>         Attachments: Regression.tgz, sitefull.log.tgz
>
>
> this issue is the clone of http://jira.codehaus.org/browse/MNG-3808
> the output of 
> /opt/development/tools/apache-maven-2.1.0/bin/mvn clean install site -X  > sitefull.log
> is in attachment with the whole project.
> the command was executed in Regression/ComponentB
> Feel free to ask more info!
> thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira