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

[jira] Commented: (MAVEN-1270) multiproject:clean fails due to dependencies in reactor set

    [ http://jira.codehaus.org/browse/MAVEN-1270?page=comments#action_61790 ] 

Yassine Lajmi commented on MAVEN-1270:
--------------------------------------

For CruiseControl Use this :

<goal name="clean-update-all">


        <echo>************************************</echo>
        <echo>    Clean all </echo>
        <echo>************************************</echo>

        <j:catch var="exception">
            <attainGoal name="multiproject:clean"/>
        </j:catch>
        <j:if test="${exception != null}">
                <echo>#######################################</echo>
                <echo>Error while calling goal [${goalName}]:</echo>
                <echo>      ************************************</echo>
                <echo>              delete manually all target directories :  </echo>
                <echo>      ************************************</echo>
                <delete includeEmptyDirs="true">
                    <fileset dir="${basedir}">
                        <include name="**/target"/>
                    </fileset>
                </delete>
                <echo>#######################################</echo>
        </j:if>


        <j:set var="maven.test.reportsDirectory" scope="parent" value="${maven.build.dir}/test-reports"/>
        <echo>************************************</echo>
        <echo>    prepare report dir : ${maven.test.reportsDirectory}  </echo>
        <echo>************************************</echo>
        <mkdir dir="${maven.test.reportsDirectory}"/>

        <echo>************************************</echo>
        <echo>    update project </echo>
        <echo>************************************</echo>
        <attainGoal name="scm:update-project"/>

    </goal>

> multiproject:clean fails due to dependencies in reactor set
> -----------------------------------------------------------
>
>          Key: MAVEN-1270
>          URL: http://jira.codehaus.org/browse/MAVEN-1270
>      Project: Maven
>         Type: Improvement

>     Versions: 1.0-rc2
>  Environment: RedHat 9.0. Sun JDK 1.4.2_01, Maven 1.0-rc2
>     Reporter: Cameron Fieber
>     Priority: Minor
>      Fix For: 1.1-rc1

>
>
> I appologize if this is already entered, but I was unable to find it searching JIRA.  This is the same as or similar to #MAVEN-443 which was marked as can't reproduce.
> If you have a multiproject build, you can't execute clean until all artifacts in that build that depend on other artifacts in the build have been produced.
> The ideal behaviour of multiproject:clean would be to either ignore dependencies not needed for the clean task itself, or consider a dependency satisfied if it is in the reactor set.
> The case where this feature would be a particular benefit is when you have an existing source tree, which has been built, and a new component is added.  If you do an update and pulling down the new component it has yet to be compiled.  You then can't do multiproject:clean on your existing tree because the new dependencies to the new component can't be resolved.

-- 
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