jdtaus-resource-mojo:java-resources

Full name:

org.jdtaus.mojo:jdtaus-resource-mojo:3.14:java-resources

Description:

Mojo to generate java resource accessor classes backed by java ResourceBundles from a project's module descriptor.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: compile.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
project MavenProject - Currently executed MavenProject.

Optional Parameters

Name Type Since Description
buildDirectory File - The directory to use for storing hashes for already generated files.
defaultLanguage String - The default language for generated bundles.
Default value is: en.
encoding String - The encoding to use for writing sources.
moduleDescriptor File - Project module descriptor to control the mojo.
Default value is: src/main/resources/META-INF/jdtaus/module.xml.
resourceDirectory File - The directory to generate resources to.
sourceDirectory File - The directory to generate sources to.

Parameter Details

buildDirectory:

The directory to use for storing hashes for already generated files.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/java-resources

defaultLanguage:

The default language for generated bundles.
  • Type: java.lang.String
  • Required: No
  • Expression: ${javaResources.defaultLanguage}
  • Default: en

encoding:

The encoding to use for writing sources.
  • Type: java.lang.String
  • Required: No
  • Expression: ${project.build.sourceEncoding}

moduleDescriptor:

Project module descriptor to control the mojo.
  • Type: java.io.File
  • Required: No
  • Expression: ${javaResources.moduleDescriptor}
  • Default: src/main/resources/META-INF/jdtaus/module.xml

project:

Currently executed MavenProject.
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • Expression: ${project}

resourceDirectory:

The directory to generate resources to.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/generated-resources/java-resources

sourceDirectory:

The directory to generate sources to.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/generated-sources/java-resources