[MNG-7498] Cannot use Maven to install a project on a NetApp volume
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Michael Bauer](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER291112)** opened **[MNG-7498](https://issues.apache.org/jira/browse/MNG-7498?redirect=false)** and commented
By default, every directory in a volume that is exported from a Network Appliance contains a directory named '.snapshot'. That directory is created and maintained by the NetApp. It is read-only; it cannot be deleted or altered.
Maven appears to refuse to install into a directory that is not cleaned out, and because of the nature of the subdirectory .snapshot it cannot delete that subdirectory. Ergo, I get errors like:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.1.0:clean (clean-target-dir) on project apache-maven: Failed to clean project: Failed to delete /usr/sup/apache-maven-3.8.6/.snapshot -> [Help 1]
/usr/sup is on a NetApp volume. I did not ask for 'clean' on this install:
% mvn -DdistributionTargetDir='/usr/sup/apache-maven-3.8.6' install
I am a sysadmin, not a developer. My ideal is repeatable builds, so I would prefer to have a way to do this that uses released software. End goal: a professor wants Hadoop, and Hadoop wants to be installed with a newer version of Maven than RHEL 7 provides. If I can't install Maven with Maven, I don't expect that installing Hadoop with Maven will work either.
Is there a way to tell Maven to ignore the .snapshot subdirectory in an otherwise empty target directory?
---
**Affects:** 3.8.6
Contributor guide
Assessment
This issue has not been assessed yet.