[Geoserver-devel] assembly plugin issue

Dear all,

I’m trying to run a build using the assembly:single option, but I’m getting the following error on the gs-platform module:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.2.0:single (default-cli) on project gs-platform: Failed to create assembly: Error creating assembly archive war: archive cannot be empty → [Help 1]

I’ve reproduced this both on master and 2.17.x. Did anyone get the same issue?

Best regards,
Marco Volpini

Please use -N as in our build script:

https://github.com/geoserver/geoserver/blob/master/build/build_release.sh#L302

···


Jody Garnett

Thank you very much for the hint Jody, it works now indeed.

Best regards,
Marco Volpini

Il giorno ven 3 lug 2020 alle ore 01:45 Jody Garnett <jody.garnett@anonymised.com> ha scritto:

Please use -N as in our build script:

https://github.com/geoserver/geoserver/blob/master/build/build_release.sh#L302


Jody Garnett

On Thu, 2 Jul 2020 at 06:29, Marco Volpini <marco.volpini@anonymised.com> wrote:

Dear all,

I’m trying to run a build using the assembly:single option, but I’m getting the following error on the gs-platform module:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.2.0:single (default-cli) on project gs-platform: Failed to create assembly: Error creating assembly archive war: archive cannot be empty → [Help 1]

I’ve reproduced this both on master and 2.17.x. Did anyone get the same issue?

Best regards,
Marco Volpini


Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

I am not sure where to document this in the build process, it was a difference when upgrading to a newer version of the assembly plugin. The configuration is being inherited by modules which are not setup to assemble.

I have considered moving the assembly configuration into the release module so that is not picked up across the entire build.

···


Jody Garnett