slingstart:attach-modelarchive

Full name:

org.apache.sling:slingstart-maven-plugin:1.7.2:attach-modelarchive

Description:

Attaches the model archive as a project artifact.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • The goal is thread-safe and supports parallel builds.
  • Binds by default to the lifecycle phase: package.

Optional Parameters

Name Type Since Description
allowUnresolvedPomDependencies boolean - If set to true, an exception is throws when "usePomDependencies" is set to true and some dependency version could not be resolved in the Maven POM.
Default value is: false.
disableExtendingMavenClasspath boolean - If set to true the Maven classpath (either scope "provided" or "test") will not be extended by the artifacts being referenced in the model.

This parameter is evaluated in the ModelPreprocessor, i.e. outside of the Mojo execution therefore it must not be configured within an execution tag but rather in the global configuration section for this plugin.


model String 1.3 Inlined model. Is processed first and afterwards merged with any model found in modelDirectory.

This parameter is evaluated in the ModelPreprocessor, i.e. outside of the Mojo execution therefore it must not be configured within an execution tag but rather in the global configuration section for this plugin.


modelArchiveName String - The filename to be used for the generated model archive file.
Default value is: ${project.build.finalName}.
modelDirectory File - The model directory containing the provision models. This parameter is evaluated in the DependencyLifecycleParticipant. As default first ${basedir}/src/main/provisioning and then ${basedir}/src/test/provisioning is used (in case the former does not exist).

This parameter is evaluated in the ModelPreprocessor, i.e. outside of the Mojo execution therefore it must not be configured within an execution tag but rather in the global configuration section for this plugin.


Default value is: ${basedir}/src/main/provisioning.
modelPattern String - The model file name pattern to consider.

This parameter is evaluated in the ModelPreprocessor, i.e. outside of the Mojo execution therefore it must not be configured within an execution tag but rather in the global configuration section for this plugin.


Default value is: ((.*)\.txt|(.*)\.model).
usePomDependencies boolean - If set to true, Artifact dependencies from provisioning file without explicit version are tried to be resolved against the dependency versions from the Maven POM.
Default value is: false.
usePomVariables boolean - If set to true, properties from the Maven POM can be used as variables in the provisioning files. The resolved variables are added to the generated provisioning file, so other tools using this model do not have to resolve them themselves.
Default value is: false.

Parameter Details

allowUnresolvedPomDependencies:

If set to true, an exception is throws when "usePomDependencies" is set to true and some dependency version could not be resolved in the Maven POM.
  • Type: boolean
  • Required: No
  • Default: false

disableExtendingMavenClasspath:

If set to true the Maven classpath (either scope "provided" or "test") will not be extended by the artifacts being referenced in the model.

This parameter is evaluated in the ModelPreprocessor, i.e. outside of the Mojo execution therefore it must not be configured within an execution tag but rather in the global configuration section for this plugin.

  • Type: boolean
  • Required: No

model:

Inlined model. Is processed first and afterwards merged with any model found in modelDirectory.

This parameter is evaluated in the ModelPreprocessor, i.e. outside of the Mojo execution therefore it must not be configured within an execution tag but rather in the global configuration section for this plugin.

  • Type: java.lang.String
  • Since: 1.3
  • Required: No

modelArchiveName:

The filename to be used for the generated model archive file.
  • Type: java.lang.String
  • Required: No
  • Default: ${project.build.finalName}

modelDirectory:

The model directory containing the provision models. This parameter is evaluated in the DependencyLifecycleParticipant. As default first ${basedir}/src/main/provisioning and then ${basedir}/src/test/provisioning is used (in case the former does not exist).

This parameter is evaluated in the ModelPreprocessor, i.e. outside of the Mojo execution therefore it must not be configured within an execution tag but rather in the global configuration section for this plugin.

  • Type: java.io.File
  • Required: No
  • Default: ${basedir}/src/main/provisioning

modelPattern:

The model file name pattern to consider.

This parameter is evaluated in the ModelPreprocessor, i.e. outside of the Mojo execution therefore it must not be configured within an execution tag but rather in the global configuration section for this plugin.

  • Type: java.lang.String
  • Required: No
  • Default: ((.*)\.txt|(.*)\.model)

usePomDependencies:

If set to true, Artifact dependencies from provisioning file without explicit version are tried to be resolved against the dependency versions from the Maven POM.
  • Type: boolean
  • Required: No
  • Default: false

usePomVariables:

If set to true, properties from the Maven POM can be used as variables in the provisioning files. The resolved variables are added to the generated provisioning file, so other tools using this model do not have to resolve them themselves.
  • Type: boolean
  • Required: No
  • Default: false