Is it possible to grant/request evelated privileges for particular goals within a pom?
Splecifically I need to retrieve an artifact from a repository then store that artifact in a file system directory the user does not have write permissions on.
Ideally I would like to elevate the users privileges just for the goal that writes the retrived file to the file system.
Is there any way to use the maven-dependency-plugin copy goal using sudo or something similar to achive this?
It needs to go in the pom.xml so it will work for testing the project within eclipse, so
sudo mvn ...
isn't an option (irrespective of that being a good idea or not).