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 9, AsyncResponse not working

I have a spring app which exposes REST API's implemented in CXF. I'm trying to implement long polling for which I used AsyncResponse Along with Suspended. If I run this peice of code in tomcat (maven plugin or standalone) it works. But if I run the…
high-voltage
  • 143
  • 5
0
votes
2 answers

java.lang.ClassNotFoundException: org.mortbay.jetty.plus.naming.Resource

i get this error while using jetty:run plugin on a ZK web project , i am using a zk archetype version 7.0.0. [ERROR] failed…
oussama.elhadri
  • 738
  • 3
  • 11
  • 27
0
votes
0 answers

Starting two instances of jetty with different maven (war)modules

I have a multi-module maven project, of which two modules generate wars. Both serverModules depend on persistenceModule. Each server module is configured with its own jetty-maven-plugin which bring the server up during pre-integration-test phase and…
NaveenBabuE
  • 706
  • 4
  • 7
  • 26
0
votes
2 answers

How to Run jetty on different maven profile

I am using maven-jetty-plugin .I have created two profile for test and development. Here is my pom test Authorization
abishkar bhattarai
  • 7,371
  • 8
  • 49
  • 66
0
votes
1 answer

Connection properties error when starting JBoss as a Maven plugin

I'm trying to install the content management system Polopoly on my PC. I get the following error when I run the mvn p:run command (this is intended to start up the Polopoly installation with an embedded database, jboss and web container): Failed to…
Victoria
  • 901
  • 3
  • 15
  • 30
0
votes
1 answer

NoSuchMethodError in Jetty with Spring Data Mongo custom repository

I have a small web application in development using Maven, Spring MVC and Spring Data Mongo. I am getting a java.lang.NoSuchMethodError when one of my Controllers attempts to access a method defined in a custom repository. The same method works fine…
0
votes
1 answer

How to run junit tests when jetty is configured to start/end at pre/post-integration-test?

I want to run junit tests, while jetty is running , how to correctly configure this? Now it seems that the tests run before jetty is started so they can't get a connection and the project build fails.
April
  • 435
  • 1
  • 5
  • 9
0
votes
0 answers

com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection refused: connect

I've been trying to start and stop Jetty automatically in mvn clean install phase for my unit tests. The annoying thing is when I deploy my war file in JBoss all the tests are working fine, however, when I try to use maven-jetty-plugin I have a…
quartaela
  • 2,579
  • 16
  • 63
  • 99
0
votes
1 answer

Why Jetty Not Start After Mvn Install

I use follow config pom.xml org.mortbay.jetty jetty-maven-plugin 7.6.14.v20131031
venlentine
  • 17
  • 8
0
votes
2 answers

Jetty Maven Plugin

Has Jetty been completely migrated over to Eclipse yet? I am using the Maven 2 plugin for Jetty version 7, 20091125. Just recently, I am getting session manager issues that I never had come up before (no session manager configured). The standalone…
Walter White
0
votes
1 answer

start jetty-maven-plugin than execute exec-maven-plugin

Could anyone help me with this!! My pom.xml "start the jetty server org.mortbay.jetty jetty-maven-plugin 8.1.14.v20131031
Kais
  • 40
  • 10
0
votes
1 answer

custom java action in maven phase

i am using javemelody to monitor performance of my app. i am using jetty maven plugin which starts up during mvn install and runs all test cases before generating the war. i wanted to generate a pdf report at the end of post-integration-test phase.…
Ashish Thukral
  • 1,445
  • 1
  • 16
  • 26
0
votes
1 answer

How to make the program find the properties file?

I have a properties file that I want my java to find but it doesn't and then I get a nullpointerexception. How can I configure maven or jetty to include my properties file? It works when I run the class from the target directory of compiled classes…
Niklas Rosencrantz
  • 25,640
  • 75
  • 229
  • 424
0
votes
1 answer

Jetty VS Tomcat Maven Plugin - which one should I use?

I'm using Tomcat as my production server and I would like to use one of maven plugins in order to run the server from within the IDE. I saw that there are 2 plugins: Tomcat maven plugin and Jetty maven plugin. What are the differences between the…
0
votes
1 answer

Magnolia Blossom using Maven

I am trying to get started with Magnolia Blossom using this document. I followed the steps (except ' Creating your own module' part) and was able to import the project in Eclipse. I have also added the Jetty Maven plugin as described above. While…
Kumar Sambhav
  • 7,503
  • 15
  • 63
  • 86