I have been intent on reusing geoserver gs-web-app war, something that we noticed was not working during foss4g workshop. The idea was to publish this as a jar (to save space) rather than deploy the war to our repository each time.
With the upcoming 2.16.2 release I figured I would look again, here are my findings:
The gs-web-app jar is empty (no content is included)
A misconfigured deploy is causing geoserver.war to be deployed twice (both as a jar and as a war)
Hi Jody,
I’ve noticed the same thing recently too, and it’s the same with the geowebcache gwc-web project, the jar is deployed with the full war contents.
I’m not sure how to fix it though, have you found a solution? if not I guess I could do some research over the next few days.
I assume the problem is the helper plugin and I would like to remove it:
org.codehaus.mojo
build-helper-maven-plugin
1.8
attach-war
package
attach-artifact
${project.build.directory}/geoserver.war
war
I think I have an approach, but it involves configuring the war and jetty plugins. Still arguing over where stuff goes, since I am mostly reverse engineering the default WAR packaging.
Start with JAR packaging: This may not be worth it, easier to skip deployment …