The Jar file can be run on Linux if there is Java support. Some distributions already come with this configuration. All you have to do is create threat files as if they were executable, for example, a compiled program or script:
chmod 700 myJar.jar ./myJar.jar
So the question makes sense.
You should be aware that this solution may not be portable across platforms.
According to this answer you need to use the following on Maven:
<fileSets> <fileSet> <directory>${basedir}/src/main/web</directory> <includes> <include>some_dir</include> </includes> <outputDirectory>web</outputDirectory> <fileMode>0777</fileMode> <directoryMode>0777</directoryMode> </fileSet> </fileSets>
If this does not work, you can also call chmod Ant task from Maven using the AntRun Plugin :
<chmod file="${dist}/start.sh" perm="ugo+rx"/>
Akira source share