Hi,
Have you checked the documentation about.. fileNameMapping
the following from the docs:
The file name mapping to use for all dependencies included in the EAR
file. The following values are valid standard, {code no-version}, full,
no-version-for-ejb. The standard means the filename is the artifactId
incl. the version of the artifact. The no-version means the files is
only the artifactId without the version. The full means the filename is
the groupId+artifactId+version of the artifact. The no-version-for-ejb
means the filename is the artifactId without the version in case of EJB
type.
Are you looking for something like that?
Kind regards
Karl Heinz Marbaise
On 20/06/17 19:21, Eric B wrote:
Is there a way to customize the filename used by the maven-ear-plugin for
the different modules but in a general template way?
At the moment, the bundleFilename by default seems to be:
${artifactId}-${version}.${packaging}
I would like to prepend it with a $[groupId} as well.
${groupId}-${artifactId}-${version}.${packaging}
where the groupId/artifactId/version/packaging belong to the module in
question.
However, I do not want to manually specify each module bundleFilename
manually.
Is there a way to configure this using parameterization?
ex:
<plugin>
<artifactId>maven-ear-plugin</artifactId>
<configuration>
<bundleFilenameTemplate>${groupId}-${artifactId}-${version}.${packaging}</bundleFilenameTemplate>
??????
</configuration>
</plugin>
Anything remotely similar exist, or anyway to achieve a similar
functionality? If I use ${groupId}/etc in the module definition, it
actually uses the ${project.groupId} instead of the webmodule.groupId.
Thanks,
Eric
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]