Fork me on GitHub


The NAR plugin sets several properties that can be helpful in configuring other plugins.

  • nar.arch: The architecture (e.g. x86_64).
  • nar.os: The operating system (e.g. MacOSX).
  • nar.linker: The linker (e.g. gpp).
  • The full AOL string. This is helpful when setting java.library.path; with a default configuration, this would be target/nar/${project.artifactId}-${project.version}-${}/lib/${}/jni
  • The AOL string with the '-' characters replaced by '.' characters.