[ http://jira.codehaus.org/browse/MPMULTIPROJECT-60?page=all ]
Lukas Theussl closed MPMULTIPROJECT-60. --------------------------------------- Assignee: Lukas Theussl Resolution: Fixed > goal in multiproject:goal isn't correctly called if the tag is used several > times in a build with different goals > ----------------------------------------------------------------------------------------------------------------- > > Key: MPMULTIPROJECT-60 > URL: http://jira.codehaus.org/browse/MPMULTIPROJECT-60 > Project: maven-multiproject-plugin > Issue Type: Bug > Affects Versions: 1.4.1 > Environment: maven 1.1-beta 1 / beta 2 > Reporter: Arnaud Heritier > Assigned To: Lukas Theussl > Priority: Blocker > > 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. -- 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