jomc:attach-main-module

Full name:

org.jomc:maven-jomc-plugin:1.4:attach-main-module

Description:

Attaches a project's main module artifact.

Attributes:

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

Optional Parameters

Name Type Since Description
attachMainModuleExecutionStrategy String 1.1 Execution strategy of the goal (always or once-per-session).
Default value is: once-per-session.
mainModuleArtifactClassifier String - Classifier of the attached module artifact.
Default value is: jomc-module.
mainModuleArtifactFile File - File of the attached module artifact.
Default value is: ${project.build.outputDirectory}/META-INF/jomc.xml.
mainModuleArtifactType String - Type of the attached module artifact.
Default value is: xml.
sessionDirectory String 1.1 Directory holding the session related files of the project.
Default value is: ${project.build.directory}/jomc-sessions.
verbose boolean 1.1 Controls verbosity of the plugin.
Default value is: false.

Parameter Details

attachMainModuleExecutionStrategy:

Execution strategy of the goal (always or once-per-session).
  • Type: java.lang.String
  • Since: 1.1
  • Required: No
  • Expression: ${jomc.attachMainModuleExecutionStrategy}
  • Default: once-per-session

mainModuleArtifactClassifier:

Classifier of the attached module artifact.
  • Type: java.lang.String
  • Required: No
  • Expression: ${jomc.mainModuleArtifactClassifier}
  • Default: jomc-module

mainModuleArtifactFile:

File of the attached module artifact.
  • Type: java.io.File
  • Required: No
  • Expression: ${jomc.mainModuleArtifactFile}
  • Default: ${project.build.outputDirectory}/META-INF/jomc.xml

mainModuleArtifactType:

Type of the attached module artifact.
  • Type: java.lang.String
  • Required: No
  • Expression: ${jomc.mainModuleArtifactType}
  • Default: xml

sessionDirectory:

Directory holding the session related files of the project.
  • Type: java.lang.String
  • Since: 1.1
  • Required: No
  • Expression: ${jomc.sessionDirectory}
  • Default: ${project.build.directory}/jomc-sessions

verbose:

Controls verbosity of the plugin.
  • Type: boolean
  • Since: 1.1
  • Required: No
  • Expression: ${jomc.verbose}
  • Default: false