nar:nar-resources

Full name:

org.apache.maven.plugins:maven-nar-plugin:2.1-SNAPSHOT:nar-resources

Description:

Copies any resources, including AOL specific distributions, to the target area for packaging

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: process-resources.

Required Parameters

Name Type Since Description
architecture String - The Architecture for the nar, Some choices are: "x86", "i386", "amd64", "ppc", "sparc", ... Defaults to a derived value from ${os.arch}
failOnError boolean - Fail on compilation/linking error.
Default value is: true.
layout String - Layout to be used for building and unpacking artifacts
Default value is: org.apache.maven.plugin.nar.NarLayout21.
libtool boolean - Set use of libtool. If set to true, the "libtool " will be prepended to the command line for compatible processors.
Default value is: false.
resourceBinDir String - Binary directory
resourceDirectory File - Directory for nar resources. Defaults to src/nar/resources
resourceIncludeDir String - Include directory
resourceLibDir String - Library directory
resourcesCopyAOL boolean - Use given AOL only. If false, copy for all available AOLs.
Default value is: true.
runtime String - Sets the type of runtime library, possible values "dynamic", "static".
Default value is: dynamic.

Optional Parameters

Name Type Since Description
aol String - Architecture-OS-Linker name. Defaults to: arch-os-linker.
c C - C Compiler
cpp Cpp - C++ Compiler
fortran Fortran - Fortran Compiler
ignore boolean - Ignore errors and failures.
Default value is: false.
java Java - Java info for includes and linking
javah Javah - Javah info
libraries List - List of libraries to create
linker Linker - Linker
maxCores int - Maximum number of Cores/CPU's to use. 0 means unlimited.
os String - The Operating System for the nar. Some choices are: "Windows", "Linux", "MacOSX", "SunOS", ... Defaults to a derived value from ${os.name} FIXME table missing
output String - Name of the output
skip boolean - Skip running of NAR plugins (any) altogether.
Default value is: false.
targetDirectory File - Target directory for Nar file construction. Defaults to "${project.build.directory}/nar" for "nar-compile" goal Defaults to "${project.build.directory}/test-nar" for "nar-testCompile" goal
tests List - List of tests to create
unpackDirectory File - Target directory for Nar file unpacking. Defaults to "${targetDirectory}/depenencies"

Parameter Details

aol:

Architecture-OS-Linker name. Defaults to: arch-os-linker.
  • Type: java.lang.String
  • Required: No

architecture:

The Architecture for the nar, Some choices are: "x86", "i386", "amd64", "ppc", "sparc", ... Defaults to a derived value from ${os.arch}
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${os.arch}

c:

C Compiler
  • Type: org.apache.maven.plugin.nar.C
  • Required: No

cpp:

C++ Compiler
  • Type: org.apache.maven.plugin.nar.Cpp
  • Required: No

failOnError:

Fail on compilation/linking error.
  • Type: boolean
  • Required: Yes
  • Default: true

fortran:

Fortran Compiler
  • Type: org.apache.maven.plugin.nar.Fortran
  • Required: No

ignore:

Ignore errors and failures.
  • Type: boolean
  • Required: No
  • Expression: ${nar.ignore}
  • Default: false

java:

Java info for includes and linking
  • Type: org.apache.maven.plugin.nar.Java
  • Required: No

javah:

Javah info
  • Type: org.apache.maven.plugin.nar.Javah
  • Required: No

layout:

Layout to be used for building and unpacking artifacts
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${nar.layout}
  • Default: org.apache.maven.plugin.nar.NarLayout21

libraries:

List of libraries to create
  • Type: java.util.List
  • Required: No

libtool:

Set use of libtool. If set to true, the "libtool " will be prepended to the command line for compatible processors.
  • Type: boolean
  • Required: Yes
  • Default: false

linker:

Linker
  • Type: org.apache.maven.plugin.nar.Linker
  • Required: No

maxCores:

Maximum number of Cores/CPU's to use. 0 means unlimited.
  • Type: int
  • Required: No

os:

The Operating System for the nar. Some choices are: "Windows", "Linux", "MacOSX", "SunOS", ... Defaults to a derived value from ${os.name} FIXME table missing
  • Type: java.lang.String
  • Required: No

output:

Name of the output
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.artifactId}-${project.version}

resourceBinDir:

Binary directory
  • Type: java.lang.String
  • Required: Yes
  • Expression: bin

resourceDirectory:

Directory for nar resources. Defaults to src/nar/resources
  • Type: java.io.File
  • Required: Yes
  • Expression: ${basedir}/src/nar/resources

resourceIncludeDir:

Include directory
  • Type: java.lang.String
  • Required: Yes
  • Expression: include

resourceLibDir:

Library directory
  • Type: java.lang.String
  • Required: Yes
  • Expression: lib

resourcesCopyAOL:

Use given AOL only. If false, copy for all available AOLs.
  • Type: boolean
  • Required: Yes
  • Expression: ${nar.resources.copy.aol}
  • Default: true

runtime:

Sets the type of runtime library, possible values "dynamic", "static".
  • Type: java.lang.String
  • Required: Yes
  • Default: dynamic

skip:

Skip running of NAR plugins (any) altogether.
  • Type: boolean
  • Required: No
  • Expression: ${nar.skip}
  • Default: false

targetDirectory:

Target directory for Nar file construction. Defaults to "${project.build.directory}/nar" for "nar-compile" goal Defaults to "${project.build.directory}/test-nar" for "nar-testCompile" goal
  • Type: java.io.File
  • Required: No

tests:

List of tests to create
  • Type: java.util.List
  • Required: No

unpackDirectory:

Target directory for Nar file unpacking. Defaults to "${targetDirectory}/depenencies"
  • Type: java.io.File
  • Required: No