Currently, the most reliable way to create multiple platform binaries using maven-nar-plugin is to actually do it on different platforms, rather than trying to use a cross-compiling solution.
For example, the ImageJ project uses the maven-nar-plugin to create a small native launcher for Linux, OS X and Windows, 32-bit and 64-bit.
To do this, the project has Jenkins CIS on a Linux server, a 64-bit Windows 7 virtual machine in VirtualBox with a Jenkins slave, and a Jenkins workstation for OS X, each of which performs Maven assembly for its respective platforms.
; ImageJ.
maven-nar-plugin, maven-nar. -, AOL , Jenkins. (, GCC ), . maven-nar-!