Questions tagged [maven-jetty-plugin]

maven-jetty-plugin is a Maven plug-in which embeds the Jetty webserver within a Maven build. It is configured in the Maven POM file. It is extremely useful for Rapid Application Development.

You may encounter issues understanding which Jetty Maven Plugin to use due to its recent history of moves between one project owner to another (more recently from codehaus.org to eclipse.org) and its different groupIds (org.mortbay.jetty vs org.eclipse.jetty).

Depending on the version of Jetty to use, you should know that:

  • Jetty up to version 6 is no longer supported by codehaus.org;
  • Jetty from version 7 to 8 are EOL (End Of Life), see Jetty Maven plugin.
  • Jetty version 9 is currently hosted by eclipse.org, see Jetty Maven Plugin

This tag should be used for questions on versions (and group ids) mentioned above. However, it is recommended to use org.eclipse.jetty as latest groupId and well maintained version.

390 questions
57
votes
9 answers

How to control VM arguments for maven-jetty-plugin?

How to set VM arguments for Jetty run from maven-jetty-plugin? For example, I need to pass -Xmx arguments to Jetty run by the mvn jetty:run command.
Michal Bernhard
  • 3,755
  • 3
  • 25
  • 37
36
votes
6 answers

Multi-module Maven project and jetty:run

I'm trying to split a Maven WAR project into two modules, so that I can build a separate JAR file with command line tools. The result has the following structure: pom.xml (packaging pom, has two modules) project-jar/ pom.xml (packaging…
Lukáš Lalinský
  • 38,094
  • 6
  • 90
  • 114
34
votes
3 answers

Debug web app in IntelliJ, webapp built by maven, run by jetty

I'm using s/o code, it's a java webapp built by maven. The webapp is run by maven script, like below, and the app is run on localhost:8080, : org.mortbay.jetty
EyeQ Tech
  • 6,756
  • 15
  • 65
  • 118
27
votes
5 answers

No plugin found for prefix 'jetty' in the current project

I have added jetty mvn plugin code in my project pom.xml. org.mortbay.jetty maven-jetty-plugin 6.1.26 /redkites
Prakhash
  • 595
  • 2
  • 5
  • 19
26
votes
6 answers

Jetty Annotation Timeout Reason

I am tying to run my web application with maven jetty plugin. But after some time at startup, it gives the error: [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml [INFO] Web overrides = none 2014-08-10…
Neron
  • 1,468
  • 6
  • 28
  • 49
25
votes
10 answers

Change Jetty default port

Jetty default port is 8080, but I want to change to default port to some other port (9999). I read a few tutorials and they said almost all of configuration information is by default maintained in file jetty.xml, this file is located under…
wag0325
  • 878
  • 3
  • 16
  • 31
24
votes
5 answers

Maven: How to use jetty:run in a multi-module Maven project, without needing to install

I'm new to Maven. I have a multi-module maven 2 project that has the following structure (somewhat simplified): Project (POM packaging) | +-- Module1 (JAR) | | | +-- src | | | +-- main | | | …
yby
  • 896
  • 8
  • 24
23
votes
3 answers

could not find Factory: javax.faces.context.FacesContextFactory

I notice that when trying to setup my JSF 2 webapp running on jetty, i have this error : java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: …
Albert Gan
  • 16,262
  • 44
  • 125
  • 177
21
votes
5 answers

Setting "root" context path with Maven Jetty plugin

I have the following Maven code snippet org.mortbay.jetty maven-jetty-plugin 6.1.16
Thomas Vervik
  • 3,615
  • 9
  • 32
  • 58
21
votes
2 answers

Configure logging for Jetty's maven plugin?

I'm invoking the "jetty:run" goal with the following plugin configuration: org.mortbay.jetty jetty-maven-plugin 7.4.4.v20110707
Gili
  • 76,473
  • 85
  • 341
  • 624
19
votes
5 answers

Enable debug logging in maven jetty 7 plugin

I'm running a java webapp with a simple mvn jetty:run, using the latest jetty plugin, but I can't seem to find a way to tell jetty to output DEBUG messages to console (for the embedded jetty instance, not the plugin itself). It's currently…
wds
  • 30,210
  • 11
  • 54
  • 81
18
votes
1 answer

How to change jsessionid cookie path to server root in Spring app on Jetty?

I have a Jetty server running a Spring app on the /app context. The app uses sessions, so it sets a session cookie, which responds like this: set-cookie:JSESSIONID=679b6291-d1cc-47be-bbf6-7ec75214f4e5; Path=/app; HttpOnly I need that cookie to have…
Tauren
  • 25,387
  • 37
  • 126
  • 165
16
votes
1 answer

hot deploy in embedded jetty

I have a Spring Roo project and I use mvn jetty:run to run my app. The only problem is changes to the *.java classes do not hot deploy, while changes to *.jspx hot deploy fine. So how can I configure mvn jetty to hotdeploy for java classes?
Porton
  • 8,243
  • 19
  • 73
  • 122
15
votes
4 answers

Setting debug configuration for maven+jetty+eclipse

I have created a web app using maven in eclipse. I am using jetty for running the app. I am able to run the app using the maven jetty plugin. But I am facing difficulty while debugging the app - The steps that i have followed to setup debug settings…
azhar_salati
  • 1,474
  • 4
  • 25
  • 51
15
votes
2 answers

No plugin found for prefix 'jetty' in the current project and in the plugin groups (local, central)

In order to easily run my webapp, I decided to add Jetty to my single POM file. Following the official documentation, I added this to my : org.eclipse.jetty jetty-maven-plugin
Nicolas Raoul
  • 55,003
  • 52
  • 197
  • 338
1
2 3
25 26