jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 1.x Multi-Project Plugin
  • MPMULTIPROJECT-60

goal in multiproject:goal isn't correctly called if the tag is used several times in a build with different goals

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.4.1
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    maven 1.1-beta 1 / beta 2
  • Testcase included:
    yes

Description

This issue isn't in the multiproject plugin but in the core (MAVEN-1691) . I create it to avoid others users to search for this problem.

Let's imagine we have the following projects :
myProject

-mySubProjectA
-mySubProjectA.1
-mySubProjectA.2
-mySubProjectB
-mySubProjectB.1
-mySubProjectB.2

You create a custom goal in myProject (myGoal) which calls the goal goalLevel1 in each direct subproject (*/project.xml)
In mySubProjectA and mySubProjectB you do the same and call another goal in subprojects (goalLevel2)
Here is what maven do :

myProject => myGoal OK

-mySubProjectA => goalLevel1 OK
-mySubProjectA.1 => goalLevel2 OK
-mySubProjectA.2 => goalLevel2 OK
-mySubProjectB => goalLevel2 KO
-mySubProjectB.1
-mySubProjectB.2

The multiproject fails because it forgot that in mySubProjectB, it should call goalLevel1.

The problem is when the second multiproject is called, it replace the value of the variable goal for the project myProject.
A testcase is given in MAVEN-1691.

Issue Links

depends upon

Bug - A problem which impairs or prevents the functions of the product. MAVEN-1691 Variable scope problem

  • Blocker - Blocks development and/or testing work, production could not run
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Lukas Theussl
    Reporter:
    Arnaud Heritier
Vote (0)
Watch (0)

Dates

  • Created:
    20/Sep/05 5:24 AM
    Updated:
    20/Jul/06 12:27 PM
    Resolved:
    20/Jul/06 12:27 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.