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
3 answers

jetty-maven-plugin setting buffers sizes

Returning to jetty-maven-plugin I've trouble to set buffers size. My use-case imply file upload (usual size is ~700Ko). Because the upload is too big for jetty-maven-plugin default configuration I get Http response with error status code 413…
Sylvain
  • 876
  • 8
  • 11
0
votes
1 answer

forcing jetty (running on maven) to ignore ssl error

is there any way to force jetty (which runs on maven) to ignore ssl handshake problem? currently my machine has self signed certificate. it makes problem when my jetty gets https request from other machine (perhaps my setting is wrong, though). i…
fajrian
  • 527
  • 1
  • 4
  • 14
0
votes
2 answers

Jetty-Maven-Plugin reads jettyXml and still starts default context

I am using Jetty 8.1.4.v20120524 and Maven 3. I have the following configuration in my pom: org.mortbay.jetty jetty-maven-plugin 8.1.4.v20120524
dirkk
  • 6,160
  • 5
  • 33
  • 51
0
votes
1 answer

how to create a project which support mvn jetty:run?

it's better that once mvn archetype:generate is runed, it can do all the things needed to create a project which support mvn jetty:run, but the fact is there are so many templates that i don't even know which one i should choose in order to create a…
hugemeow
  • 7,777
  • 13
  • 50
  • 63
0
votes
1 answer

How can I cache a GET response for 5 hours?

WHAT I WANT I'm working on a maven-jetty-plugin that uses jersey to map resources. How can I cache the version number for 5 hours so that I don't have to GET it every time the page loads? MY CODE Here is the html code that will contain the version…
NoBrainer
  • 5,853
  • 1
  • 27
  • 27
0
votes
1 answer

Cannot create bean when deploying on tomcat on aws vs jetty locally

I have my build running locally with jetty, but when I try deploying the war on my aws server through tomcat6, I receive the error below. Originally, I was getting the Cannot create PoolableConnectionFactory, but I've since fixed my url to the db.…
0
votes
1 answer

maven's eclipse jetty plugin + context deployer

I am developing a java application which currently runs in both jetty version 6(mortbay) and 8(eclipse) servers. I find maintaining the project a bit hectic, due to the constant upgrades of versions now and then and would like to add integration…
Isabella
  • 21
  • 1
  • 6
0
votes
1 answer

use shiro with mvn jetty plugin

I downloaded "Spring MVC + Shiro + myBatis + JSR-303 Validation" example from apache shiro doc page, and I want to run it with maven jetty plugin, So I open the pom.xml and put things like this
0
votes
1 answer

Can`t deploy two war files via maven-jetty plugin

I try to run two wars on jetty. I have got this configuration. org.mortbay.jetty maven-jetty-plugin 6.1.14
Iurii Dziuban
  • 1,091
  • 2
  • 17
  • 31
0
votes
1 answer

Jetty property daemon seems not to work

I already asked that as a secondary question in another thread, but then it's the only problem remaining. So, I'm using Maven2 for the continuous integration, and this is how it is working : 1. Unit test the server side 2. Build the application…
Depado
  • 4,811
  • 3
  • 41
  • 63
0
votes
1 answer

Hibernate error running webapp with jetty-maven-plugin

I have a Maven-built web application that uses Hibernate. It runs successfully in Tomcat, but fails with the following exception when executed within the jetty-maven-plugin: java.lang.TypeNotPresentException: Type…
Kkkev
  • 4,716
  • 5
  • 27
  • 43
0
votes
1 answer

Maven-Jetty-Plugin. Hot redeploy .war

I added maven-jetty-plugin to my pom.xml, and execute goal jetty:run-war . All work fine. But when I want hot-redeploy of project, after some changes on source code, I need to repeat goal package on my project (I think because I deployed project as…
WelcomeTo
  • 19,843
  • 53
  • 170
  • 286
0
votes
1 answer

Maven Tomcat Integration for Project with Multiple Independent Services

We have the following project setup: Root (pom) | +-- s1: Service 1 (war) +-- s2: Service 2 (war) +-- lib: Shared Library for Service 1 + 2 (jar) +-- intf: Service 1 Interface POJOs Each is a maven project with its own…
Patrick
  • 809
  • 3
  • 9
  • 21
0
votes
1 answer

How to get Jetty to use JVM scoped JNDI?

I'm trying to setup a JNDI resource for a Jackrabbit repository factory in Jetty. The problem is that I seem to be getting thhe JNDI as webapp scoped. I need it to be JVM scoped. As far as I understood from the docs, you need to specify a null arg…
carlspring
  • 31,231
  • 29
  • 115
  • 197
-1
votes
1 answer

jetty 7 & 8 and Enabling JMX for Maven

What is the way of enabling jmx at jetty 7 for maven. I set -Dcom.sun.management.jmxremote but still could not be successful. Should I include another dependency for jetty maven plugin? Thanks
Cemo
  • 5,370
  • 10
  • 50
  • 82
1 2 3
26
27