[Geoserver-devel] [JIRA] (GEOS-9187) web-app can no longer use jetty:run as packaging changed to jar

Jody Garnett created an issue

GeoServer / BugGEOS-9187

web-app can no longer use jetty:run as packaging changed to jar

Issue Type:

BugBug

Affects Versions:

2.15.0

Assignee:

Jody Garnett

Components:

release

Created:

23/Apr/19 7:38 PM

Priority:

MediumMedium

Reporter:

Jody Garnett

Last week we ran a GeoServer developer workshop at foss4gna and ran into the following glitch, our QuickStart instruction provides the following steps:

cd geoserver/src
mvn install -DskipTests -T 2C
cd web/app
mvn jetty:run

The last step fails as the packaging for web/app is “jar” rather than “war”:

[INFO] --- jetty-maven-plugin:9.4.12.v20180830:run (default-cli) @ gs-web-app ---
[INFO] Logging initialized @7015ms to org.eclipse.jetty.util.log.Slf4jLog
[INFO] Skipping GeoServer Web Application : packaging type [jar] is unsupported

Changing it to “war” allows us to run, but then the maven install fails:

[ERROR] Failed to execute goal org.codehaus.mojo:build-helper-maven-plugin:1.8:attach-artifact (attach-war) on project gs-web-app: Execution attach-war of goal org.codehaus.mojo:build-helper-maven-plugin:1.8:attach-artifact failed: For artifact {org.geoserver.web:gs-web-app:2.15-SNAPSHOT:war}: An attached artifact must have a different ID than its corresponding main artifact. -> [Help 1]

I was unable to untangle this by providing a classifier to build-helper-maven-plugin:

<artifact>
  <classifier>war</classifier>
  <file>${project.build.directory}/geoserver.war</file>
  <type>war</type>
</artifact>

After this change both mvn install and mvn jetty:run work; but I am concerned for any downstream application depending on gs-web-app as a jar.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100099-sha1:be996a2)

Atlassian logo