The nar-maven-plugin (formerly "maven-nar-plugin") is a Maven plugin that provides a platform-agnostic way of managing native code dependencies of Java projects.
This plugin for Maven 2 allows you to compile native code (c++, c and fortran) on a number of different architectures (Linux, Windows, MacOSX, Solaris, ...) and with a number of different compilers/linkers (g++, Microsoft Visual C++, CC, ...). The output produced is wrapped up in Native ARchive files (.nar) some of which are machine independent (-noarch), while others are machine specific and thus depend on a combination of machine architecture(A), operating-system(O) and linker(L) identified as AOL. These nar files can be installed in the local maven repository and deployed to a standard maven (web) server, using the standard maven-install-plugin and maven-deploy-plugin.
- nar-maven-plugin documentation
- maven-nar organization on GitHub
- nar-maven-plugin Git repository on GitHub