JoaoGalli
JoaoGalli

Reputation: 472

Why Jetty 9 doesn't respect finalName?

I am using Maven with Jetty Plugin, but my projects lost their finalName in the URL. They used to be like localhost:8080/projectname and now they are only localhost:8080. Is there a way to force Jetty to use the finalName?

Upvotes: 0

Views: 59

Answers (1)

Joakim Erdfelt
Joakim Erdfelt

Reputation: 49515

Maven's <project>/<build>/<finalName> and your Jetty contextPath are completely unrelated when it comes to the jetty-maven-plugin.

The contextPath for jetty-maven-plugin defaults to /.

You'll want to configure your webapp per the instructions for the jetty-maven-plugin, with a focus on the <contextPath> element in your plugin <configuration>.

Upvotes: 1

Related Questions