Maven Exec¶
It is possible to run native applications during a Maven build. To do so, we need the exec-maven-plugin. This plugin can run Java programs, but can also invoke native programs. We have used this plugin in a context where we wanted to run a shell script to assemble a p2 Eclipse repository and to publish it through sftp. We wanted to run this script in the deploy phase, when the p2 repository has already been generated by the tycho packaging phase.
The example provided here can be found in the es.sidelab.pascaline-site/pom.xml file (available online in the pascaline project repository):