apache / apache/maven-war-plugin
[MWAR-455] Exploded war task fails on second run when file that was previously read only is updated
- Dominant language
- Java
- Stars
- 50
- Forks
- 97
- Avg merge
- 16h 49m
- Merged PRs (30d)
- 3
Description
**[Seth Wilcox](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=laoseth)** opened **[MWAR-455](https://issues.apache.org/jira/browse/MWAR-455?redirect=false)** and commented
For background, we are using perforce, which marks files as readonly until local modification. As such, when using the exploded target for faster incremental builds, when a file is updated, when the war task attempts to copy the updated resource file, it fails with a accessDenied exception. If the read only flag is cleared on the target, or the target file that is in the way is removed, the issue is fixed. I would propose adding a force/override field akin to ant file copy tasks to allow those of us with this specific issue a path around it, while protecting others who may want the read only flag respected
---
**Attachments:**
- [stackTrace.txt](https://issues.apache.org/jira/secure/attachment/13046166/stackTrace.txt) (_5.64 kB_)
**Remote Links:**
- [GitHub Pull Request #27
](https://github.com/apache/maven-war-plugin/pull/27)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.