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.

398 questions
0
votes
1 answer

Jetty.xml import local class

I have a web-app that i run through Maven Jetty plugin. I configure it using a jetty.xml file. My problem comes when i want to set a custom authenticator that i have created in the WebAppContext. The XML config looks like below:
nikkatsa
  • 1,751
  • 4
  • 26
  • 43
0
votes
2 answers

logback access with Jetty maven plugin

I am trying to use logback access with jetty following this However I am getting this exception when starting the server: Config error at | logback.xml | java.lang.ClassNotFoundException: ch.qos.logback.access.jetty.RequestLogImpl Here…
mosaad
  • 2,276
  • 5
  • 27
  • 49
0
votes
1 answer

jetty:run-forked not scanning for changed classes - hot swap is not working

I am using the maven jetty plugin and am having issues getting hot swap to work. When I change a class and compile through maven, the change is not being picked up. I am using the scanIntervalSeconds setting, but it looks like it is being…
Dug
  • 1
  • 2
0
votes
1 answer

After reloading jetty-maven-plugin 503's

I am experimenting with the jetty-maven-plugin and no-xml spring configurations, but am having issues using jettys automatic class reloading. When I was using a web.xml everything worked fine. The WebApplicationInitializer.java replaces the old…
austinbv
  • 9,297
  • 6
  • 50
  • 82
0
votes
2 answers

Jetty.xml how to define JNDI ref to OpenMQ

I have this configured in my server.xml for tomcat the following JNDI ref's to OpenMQ...
jeff porter
  • 6,560
  • 13
  • 65
  • 123
0
votes
1 answer

change generated war name using maven jetty plugin

I am using maven Struts2 blank artifact to create my web application. Here is my pom.xml :-
pranay godha
  • 195
  • 1
  • 4
  • 14
0
votes
2 answers

External static resources with Jetty

I have the following Jetty config: ${project.basedir}/configuration/webdefaults.xml /app
kaqqao
  • 12,984
  • 10
  • 64
  • 118
0
votes
1 answer

How do I enable jetty-maven-plugin 8 server debug output?

I'm trying to upgrade our jetty from 7 to 8 so that we can take advantage of servlet 3.0. It doesn't appear that any settings or configuration changes were made from 7 to 8. Previously we've been using jetty-maven-plugin 7.2.0.RC0 to mvn jetty:run…
DanielKWinsor
  • 125
  • 1
  • 9
0
votes
1 answer

how can I config jetty version with maven-jetty-plugin?

I want to run a webapp with Jetty-6.1.25, but how can I config the version number of jetty with maven-jetty-plugin?
rmn190
  • 611
  • 1
  • 9
  • 19
0
votes
1 answer

jetty-maven-plugin does not show sysout and log messages

I have just started using jetty-maven-plugin. I found some strange behavior regarding logs and system output. When I start jetty with maven mvn -Djetty.port=8093 -Dlog4j.configuration=file:src/log4j.properties jetty:run I see bean constructor…
snowindy
  • 3,117
  • 9
  • 40
  • 54
0
votes
2 answers

mvn jetty:run get a build failure

I have a project and I ran it successfully with mvn jetty:run in the command window in windows. Then I tried maven build in eclipse. After that, it says that a build failure occurred and I end up with this kind of message after running mvn jetty:run…
DilanG
  • 1,197
  • 1
  • 26
  • 42
0
votes
1 answer

maven transitive dependencies lost in jetty:run

I have a largish project that needs to be usable either with a command-line interface or through a web-app. The core server is deployed as 10 separate jars. The web-app is currently deployed as a .war, but that is a huge file that duplicates all the…
GrampaJohn
  • 617
  • 6
  • 10
0
votes
1 answer

Maven build war doesn't work properly on Tomcat 7

I've been working on a web app that and here's me configuration before I get started telling my story. Configuration: IntelliJ IDEA 11 + Java 7 + (Maven + Jetty 8.0.1). When I clean and build my app on intelliJ, everything works as expected and…
neocorp
  • 569
  • 7
  • 20
0
votes
1 answer

Jetty Plugin - docBase Equivalent

I have a directory C:\documents\ and I would like its files and sub-directories to be accessible by visiting http://localhost/something/? Using Tomcat, I know that I can use How can this be done…
James
  • 2,876
  • 18
  • 72
  • 116
0
votes
1 answer

Error while running Jetty server with Maven in Eclipse

I am using m2eclipse. I configured jetty-maven plugin in pom.xml properly. when I try to execute through CMD its working fine. No error Whereas when I try to execute through eclipse, $ java.lang.NoClassDefFoundError: MAVEN_OPTS=-Xdebug -Xnoagent…
user1611575
  • 95
  • 3
  • 7