Build C ++ projects in Maven with maven-nar-plugin

Does anyone use maven-nar-plugin to create C ++ code for different platforms using different compilers? If there is someone please give me more information about this. I am just wondering what might be the NAR file created for different platforms using maven. I know that in order to create a project on a specific platform, you must run the assembly on this platform and use specific compilers and linkers of this platform. But my experience is with Java and Maven projects, and since you already know that Java is pretty portable, I still haven't experienced issues like tone. Thus, any help and details on how to create projects with maven-nar-plugin will be accepted! Thanks

+5
source share
1 answer

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-!

+2

All Articles