You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/02/28 10:41:57 UTC

[I] [MCLEAN-45] Clean plugin should support a silent retry in case the first attemp fails [maven-clean-plugin]

jira-importer opened a new issue, #210:
URL: https://github.com/apache/maven-clean-plugin/issues/210

   **[Michael Hinterseher](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mhinterseher)** opened **[MCLEAN-45](https://issues.apache.org/jira/browse/MCLEAN-45?redirect=false)** and commented
   
   Sometimes file are accessed by third party software like virus scanners or search indexing while clean goal is performed. This causes the clean plugin to fail.
   In case a file can't be deleted right away it would be good to wait for a short period of time and then try to delete it again. Only if second trial also fails the build should fail.
   
   
   ---
   
   **Affects:** 2.4.1
   
   **Issue Links:**
   - [MCLEAN-78](https://issues.apache.org/jira/browse/MCLEAN-78) Ability to retry longer if clean fails
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [MCLEAN-45] Clean plugin should support a silent retry in case the first attemp fails [maven-clean-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #210:
URL: https://github.com/apache/maven-clean-plugin/issues/210#issuecomment-2690315407

   **[Gili](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cowwoc)** commented
   
   When will this fix be released to the general public? I keep on running into this problem especially with Windows' indexing service.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [MCLEAN-45] Clean plugin should support a silent retry in case the first attemp fails [maven-clean-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #210:
URL: https://github.com/apache/maven-clean-plugin/issues/210#issuecomment-2690315390

   **[Benjamin Bentmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bentmann)** commented
   
   The plugin was already making two attempts for deletion (the second after 10ms waiting), which is now further extended in [r983256](http://svn.apache.org/viewvc?view=revision&revision=983256). Now, the plugin makes up to four attempts to delete a file, after delays of 125, 250 and 750 ms, respectively. A new snapshot has been deployed, I would appreciate some feedback whether this logic is more effective.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [MCLEAN-45] Clean plugin should support a silent retry in case the first attemp fails [maven-clean-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #210:
URL: https://github.com/apache/maven-clean-plugin/issues/210#issuecomment-2690315402

   **[Benjamin Bentmann](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=bentmann)** commented
   
   Additionally added a new parameter to disable the re-attempted deletions in [r985474](http://svn.apache.org/viewvc?view=revision&revision=985474) as [suggested by Brett](http://www.mail-archive.com/dev@maven.apache.org/msg85407.html).
   
   Michael, any field experiences so far whether the reworked code actually helps?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [MCLEAN-45] Clean plugin should support a silent retry in case the first attemp fails [maven-clean-plugin]

Posted by "jira-importer (via GitHub)" <gi...@apache.org>.
jira-importer commented on issue #210:
URL: https://github.com/apache/maven-clean-plugin/issues/210#issuecomment-2690315396

   **[Michael Hinterseher](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mhinterseher)** commented
   
   Thanks for quick response. I will make some tests. I am sure the fix solves the problem.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org