Hi Martin,

> how do I get maven to tell me what will be removed when I type "mvn
> clean" without actually performing the removal?

Looking at the docs [1], it seems that the maven-clean-plugin does not have
that feature.

But looking at the source [2], it would probably be a pretty easy feature
to add.

Care to try your hand at it?

First step is to create a JIRA account:
https://xircles.codehaus.org/

Second step is to file an issue for it:
 http://jira.codehaus.org/browse/MCLEAN

Third step, if you're up for it, would be to attach a patch:
http://maven.apache.org/guides/development/guide-m2-development.html#Creating_and_submitting_a_patch

Regards,
Curtis

[1] http://maven.apache.org/plugins/maven-clean-plugin/clean-mojo.html
[2]
https://github.com/apache/maven-plugins/blob/trunk/maven-clean-plugin/src/main/java/org/apache/maven/plugin/clean/CleanMojo.java


On Fri, Aug 22, 2014 at 9:01 AM, Martin d'Anjou <[email protected]>
wrote:

> Hello,
>
> In GNU Make, I can use the -n command line option to get Make to tell me
> what will happen without actually performing any action.
>
> Specifically, how do I get maven to tell me what will be removed when I
> type "mvn clean" without actually performing the removal?
>
> In general, how do I get maven to do a dry run of any goal and reveal the
> commands it will perform?
>
> Thanks,
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to