i18n:collect-i18n-artifacts

Full name:

org.nuiton.i18n:i18n-maven-plugin:4.1:collect-i18n-artifacts

Description:

Detects any i18n artifacts in the dependencies of the project and store their references in a file. The generated file will be used by bundle mojo to generate the final aggregated bundle.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: runtime.
  • The goal is not marked as thread-safe and thus does not support parallel builds.
  • Since version: 1.0.2.
  • Binds by default to the lifecycle phase: generate-resources.

Required Parameters

Name Type Since Description
<bundles> String 1.0.2 Locales to treate, separated by comma. Example :
fr_FR,en_GB

Default value is: fr_FR,en_GB.
User property is: i18n.bundles.
<collectOutputDir> File 1.0.2 Directory where to generate bundles.
Default value is: ${basedir}/target/i18n.
User property is: i18n.collectOutputDir.
<collectOutputName> String 1.0.2 BAse name of file which contains bundles locations.
Default value is: collect-${project.artifactId}-i18n.
User property is: i18n.collectOutputName.
<encoding> String 1.0.2 Encoding used to load and store properties.
Default value is: ${project.build.sourceEncoding}.
User property is: i18n.encoding.
<src> File 1.0.2 Directory where to find project i18n files.
Default value is: ${basedir}/src/main/resources/i18n.
User property is: i18n.src.

Optional Parameters

Name Type Since Description
<silent> boolean 1.0.0-rc-5 Silent flag to see only errors in console.
Default value is: false.
User property is: i18n.silent.
<verbose> boolean 1.0.2 Verbose flag. Note : if not setted, we used the maven.verbose property.
Default value is: ${maven.verbose}.
User property is: i18n.verbose.

Parameter Details

<bundles>

Locales to treate, separated by comma. Example :
fr_FR,en_GB
  • Type: java.lang.String
  • Since: 1.0.2
  • Required: Yes
  • User Property: i18n.bundles
  • Default: fr_FR,en_GB

<collectOutputDir>

Directory where to generate bundles.
  • Type: java.io.File
  • Since: 1.0.2
  • Required: Yes
  • User Property: i18n.collectOutputDir
  • Default: ${basedir}/target/i18n

<collectOutputName>

BAse name of file which contains bundles locations.
  • Type: java.lang.String
  • Since: 1.0.2
  • Required: Yes
  • User Property: i18n.collectOutputName
  • Default: collect-${project.artifactId}-i18n

<encoding>

Encoding used to load and store properties.
  • Type: java.lang.String
  • Since: 1.0.2
  • Required: Yes
  • User Property: i18n.encoding
  • Default: ${project.build.sourceEncoding}

<silent>

Silent flag to see only errors in console.
  • Type: boolean
  • Since: 1.0.0-rc-5
  • Required: No
  • User Property: i18n.silent
  • Default: false

<src>

Directory where to find project i18n files.
  • Type: java.io.File
  • Since: 1.0.2
  • Required: Yes
  • User Property: i18n.src
  • Default: ${basedir}/src/main/resources/i18n

<verbose>

Verbose flag. Note : if not setted, we used the maven.verbose property.
  • Type: boolean
  • Since: 1.0.2
  • Required: No
  • User Property: i18n.verbose
  • Default: ${maven.verbose}