At the end of my Maven build, one module that exists for this express purpose collects the artifacts from the various other modules and zips them into an archive using the Assembly plugin. Once done, it deploys them to Nexus using the Deploy plugin.
For historic reasons, this packaging module is called bundle
, so the artifacts end up called mygroup:bundle
and are thus categorized in Nexus.
I would rather have them show up under mygroup:myprojectname
, but I can't figure out how to deploy them to that location.
I have tried configuring the Deploy plugin's deploy-file
goal to change the coordinates, but did not succeed.
As an additional complication, the project's main code module is already called myprojectname
, so the group is not empty on deployment. Thanks to classifiers and types, though, nothing needs to be overwritten.
Short of renaming the modules, can I somehow do this?