What?  If you have an ear subproject that depends on a new war
subproject, you won't be able to invoke the clean goal (in the root,
to clean the old subprojects, for whatever reason) until you've
installed the new war subproject.  That's just wrong: clean should
ignore missing dependencies.

Jim

[EMAIL PROTECTED] writes:

> Your cruisecontrol initiated Maven project should have no dependencies on 
> other subprojects.
> --
> dIon Gillard, Multitask Consulting
>
>
>
> Ian Kent <[EMAIL PROTECTED]> wrote on 21/05/2004 06:33:58 AM:
>
>> We have a software project that has been modularized into many maven 
>> projects (subprojects).
>> We are using the maven-multiproject-plugin-1.1 with maven 1.0RC1 to 
>> iterate through projects
>> and attain goals (clean, install, deploy, site, etc...).  We use 
>> ClearCase as or SCM.
>> 
>> We are having a problem with the multiproject:clean goal. This goal 
>> simply uses the reactor
>> to iterate through subprojects and run the clean:clean goal. The 
>> clean:clean goal deletes
>> the ${maven.build.dir}. All works well until we introduce a new 
>> subproject. The first time
>> the hourly cruisecontrol build runs it will invoke multiproject:clean 
>> and fail because maven
>> is unable to resolve dependency on new subproject/artifact. This is a 
>> chicken-and-egg
>> scenario as the artifact does not exist because it has not yet been 
>> built and installed or
>> deploy to maven repository. See error message below.
>> 
>> I considered ignoring the multiproject:clean failures using the 
>> multiproject.ignoreFailures
>> property. This will result in target directories being left behind.
>> 
>> I also considered implementing clean in maven.xml as the apache geronimo 
>
>> project does.
>> However, I would prefer not to bypass the clean plugin as the 
>> implementation of clean
>> goal may change in future versions.
>> 
>> Does anyone in the maven user community have a recommendation (best 
>> practise)
>> for dealing with this problem?
>> 
>> 
>> ** MAVEN ERROR MESSAGE **
>> 
>> cmd> maven clean:clean
>> 
>> Attempting to download datasource-workflow-impl-1.0.jar.
>> WARNING: Failed to download datasource-workflow-impl-1.0.jar.
>> The build cannot continue because of the following unsatisfied 
> dependency:
>> 
>> datasource-workflow-impl-1.0.jar (no download url specified)
>> 
>> Total time: 4 seconds
>> Finished at: Thu May 20 13:22:36 EDT 2004
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to