acr:acr

Full name:

org.apache.maven.plugins:maven-acr-plugin:1.0:acr

Description:

Build a JavaEE Application Client jar file from the current project.

Attributes:

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

Optional Parameters

Name Type Since Description
archive MavenArchiveConfiguration - The archive configuration to use. See Maven Archiver Reference.
escapeBackslashesInFilePath boolean - To escape interpolated value with windows path. c:\foo\bar will be replaced with c:\\foo\\bar.
Default value is: false.
escapeString String - An expression preceded with this String won't be interpolated. \${foo} will be replaced with ${foo}.
excludes List - The files and directories to exclude from the main Application Client jar. Usage:

<excludes>
  <exclude>**/*DevOnly.class</exclude>
</excludes>

Default exclusions: META-INF/application-client.xml,
filterDeploymentDescriptor boolean - To filter the deployment descriptor.
Default value is: false.
filters List - Filters (properties files) to include during the interpolation of the deployment descriptor.
jarName String - The name of the Application client JAR file to generate.
Default value is: ${project.build.finalName}.
outputDirectory File - Directory that resources are copied to during the build.
Default value is: ${project.build.outputDirectory}.

Parameter Details

archive:

The archive configuration to use. See Maven Archiver Reference.
  • Type: org.apache.maven.archiver.MavenArchiveConfiguration
  • Required: No

escapeBackslashesInFilePath:

To escape interpolated value with windows path. c:\foo\bar will be replaced with c:\\foo\\bar.
  • Type: boolean
  • Required: No
  • Expression: ${acr.escapeBackslashesInFilePath}
  • Default: false

escapeString:

An expression preceded with this String won't be interpolated. \${foo} will be replaced with ${foo}.
  • Type: java.lang.String
  • Required: No
  • Expression: ${acr.escapeString}

excludes:

The files and directories to exclude from the main Application Client jar. Usage:

<excludes>
  <exclude>**/*DevOnly.class</exclude>
</excludes>

Default exclusions: META-INF/application-client.xml,
  • Type: java.util.List
  • Required: No

filterDeploymentDescriptor:

To filter the deployment descriptor.
  • Type: boolean
  • Required: No
  • Expression: ${acr.filterDeploymentDescriptor}
  • Default: false

filters:

Filters (properties files) to include during the interpolation of the deployment descriptor.
  • Type: java.util.List
  • Required: No

jarName:

The name of the Application client JAR file to generate.
  • Type: java.lang.String
  • Required: No
  • Expression: ${jarName}
  • Default: ${project.build.finalName}

outputDirectory:

Directory that resources are copied to during the build.
  • Type: java.io.File
  • Required: No
  • Expression: ${outputDirectory}
  • Default: ${project.build.outputDirectory}