[ 
https://issues.apache.org/jira/browse/MCLEAN-79?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16214252#comment-16214252
 ] 

Robert Scholte commented on MCLEAN-79:
--------------------------------------

IMHO you should avoid using {{clean}} because, as you say, it removes 
everything, which is often too much.
For some reason a lot call {{mvn clean install}} where I highly prefer {{mvn 
verify}}.
Plugins should be aware if the task of their goals should be executed or not. 
e.g. the maven-compiler-plugin verifies nowadays if there are source changes 
after the latest build. If not, no need to compile.

In other words: it is the plugin responsibiliy to do cleanups when required. 
The clean goal is just a last solution if plugins don't do their jobs good 
enough.


> Partial Clean + Configurable Selectors
> --------------------------------------
>
>                 Key: MCLEAN-79
>                 URL: https://issues.apache.org/jira/browse/MCLEAN-79
>             Project: Maven Clean Plugin
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Matthew Ouyang
>              Labels: features
>         Attachments: clean-partial.patch
>
>
> Partial cleanup would be useful in situations where source files are deleted 
> or changing between feature branches (which also can result in deleted source 
> files).  This would eliminate the need to do a full clean.
> Looking for feedback on provided patch.  To enable this, Selectors need to be 
> configurable + some POC implementations (IdentitySelector, JavaSelector) have 
> between provided.  The patch also includes a page that describes the new 
> feature in more detail, and Selectors have been placed in a separate package 
> (now that there is more than one implementation).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to