I’m using Maven with the Assembly plugin and would like to set the user and group for a tar-file.
I can set access rights to every directory, but without setting the user this is quite useless.
Any ideas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The tar is created with the permission of the user running it. If you want this to be a particular user/group you can run
mavenas that user/group.Maven may not allow you to use tar as a different user, but if you can do it in ant you can use http://maven.apache.org/plugins/maven-antrun-plugin/ to do anything ant can do.
http://maven.apache.org/plugins/maven-antrun-plugin/usage.html