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
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
  • 2,655
  • 6
  • 35
  • 45
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,097
  • 1
  • 22
  • 39
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
  • 537
  • 5
  • 9
0
votes
4 answers

How to add environment variables to maven-jetty-plugin

I am using the maven jetty pluggin as follows: org.mortbay.jetty jetty-maven-plugin 8.1.5.v20120716 1
ekaqu
  • 1,860
  • 2
  • 22
  • 34
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
  • 509
  • 7
  • 17
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
  • 3,524
  • 14
  • 59
  • 95
0
votes
0 answers

Jetty Maven Plugin: using scan

I have a JavaScript project in Netbeans with the following file structure: src/main/javascript src/main/resources (containing my index.html) src/main/webapp Doing the mvn build, the target folder contains my "project" folder with my index.html and…
intA
  • 487
  • 2
  • 10
  • 23
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
  • 85
  • 3
  • 7
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
  • 731
  • 7
  • 9
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
  • 497
  • 1
  • 3
  • 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,214
  • 5
  • 30
  • 49
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,177
  • 13
  • 43
  • 59
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,360
  • 1
  • 22
  • 25
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
1 2 3
25
26