jdtaus-container-mojo:spring-descriptor

Full name:

org.jdtaus.mojo:jdtaus-container-mojo:3.13:spring-descriptor

Description:

Mojo to generate a spring beans descriptor with corresponding support classes from a project.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Binds by default to the lifecycle phase: process-resources.

Required Parameters

Name Type Since Description
factoryBean String - Class name of the FactoryBean implementation to generate.

Optional Parameters

Name Type Since Description
classPathElementsExcludeRegexp String - A regular expression used for excluding elements from the runtime classpath elements. By default no elements will be excluded.
encoding String - The encoding to use for reading and writing sources. By default the system's default encoding will be used.
Default value is: ${project.build.sourceEncoding}.
locale String - Language to be used for javadoc comments. By default the system's default locale will be used.
sourceRoot File - Source root to create the factory bean class in.
Default value is: ${project.build.directory}/generated-sources/container.
spacesPerIndentationLevel Integer - Number of spaces to use per indentation level.
Default value is: 4.
springDescriptor File - Name of the spring beans descriptor to generate.
Default value is: ${project.build.directory}/classes/META-INF/jdtaus/spring-beans.xml.
testClassPathElementsExcludeRegexp String - A regular expression used for excluding elements from the test classpath elements. By default no elements will be excluded.
testMode Boolean - Flag indicating test mode. In test mode generated sources will be printed to the console and no files will be written.
Default value is: false.

Parameter Details

classPathElementsExcludeRegexp:

A regular expression used for excluding elements from the runtime classpath elements. By default no elements will be excluded.
  • Type: java.lang.String
  • Required: No
  • Expression: ${classPathElementsExcludeRegexp}

encoding:

The encoding to use for reading and writing sources. By default the system's default encoding will be used.
  • Type: java.lang.String
  • Required: No
  • Expression: ${encoding}
  • Default: ${project.build.sourceEncoding}

factoryBean:

Class name of the FactoryBean implementation to generate.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${factoryBean}

locale:

Language to be used for javadoc comments. By default the system's default locale will be used.
  • Type: java.lang.String
  • Required: No
  • Expression: ${locale}

sourceRoot:

Source root to create the factory bean class in.
  • Type: java.io.File
  • Required: No
  • Expression: ${sourceRoot}
  • Default: ${project.build.directory}/generated-sources/container

spacesPerIndentationLevel:

Number of spaces to use per indentation level.
  • Type: java.lang.Integer
  • Required: No
  • Expression: ${spacesPerIndentationLevel}
  • Default: 4

springDescriptor:

Name of the spring beans descriptor to generate.
  • Type: java.io.File
  • Required: No
  • Expression: ${springDescriptor}
  • Default: ${project.build.directory}/classes/META-INF/jdtaus/spring-beans.xml

testClassPathElementsExcludeRegexp:

A regular expression used for excluding elements from the test classpath elements. By default no elements will be excluded.
  • Type: java.lang.String
  • Required: No
  • Expression: ${testClassPathElementsExcludeRegexp}

testMode:

Flag indicating test mode. In test mode generated sources will be printed to the console and no files will be written.
  • Type: java.lang.Boolean
  • Required: No
  • Expression: ${testMode}
  • Default: false