If I was you, I wouldn't call the clean goal directly from the command line. Instead, bind the clean goal execution to a given lifecycle phase for the project that needs to perform the cleaning. Here how you do it.
Add this snippet to your project pom file : <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <executions> <execution> <phase>thephase</phase> <goals> <goal>clean</goal> </goals> </execution> </executions> </plugin> </plugins> </build> On 4/24/06, Jason Dillon <[EMAIL PROTECTED]> wrote: > I've got a project that uses one module to generate code (using > AndroMDA) into another module, but when I do something like `mvn > clean install` from the top-level it will generate code from the mda > module, then the other module will then delete it all when it runs > clean before install. > > I'd really like to just turn off clean from one of these modules, and > then configure the mda module to clean up for it... > > Any idea how I might get this done? > > --jason > This email and any attachment(s) thereto, are intended for the use of > the addressee(s) named herein and may contain legally privileged and or > confidential information under applicable law. If you are not the > intended recipient of this e-mail, you are hereby notified any > dissemination, distribution or copying of this email, and any attachment(s) > thereto, is strictly prohibited. If you have received this communication > in error, please notify the sender at 415-281-2200 or via return e-mail at > [EMAIL PROTECTED] and permanently delete the original copy and > any copy of any e-mail, and any printout thereof. Thank you for your > cooperation. > > > --------------------------------------------------------------------- > 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]