Sunday, April 3, 2011

How do I set file permissions in Maven POM file

I need to set "execute" permissions on a file which is a part of the WAR project. Can I do this without resorting to Ant script?

From stackoverflow
  • Actually I found the answer in the "Maven: The Definitive Guide": http://www.sonatype.com/books/maven-book/reference/assemblies-sect-filesets.html

    Strange Google wasn't able to find it.

    victor hugo : Actually if you google "maven assembly plugin permission" the first result is the official reference from Maven http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_fileSet, next time look at the assembly descriptor reference of the plugin
    Sasha O : Of course, if you know the magic word "assembly" :-)

0 comments:

Post a Comment