maven-jetty-plugin

Why does the maven eclipse plugin break the maven jetty plugin?

I would like to have the maven eclipse plugin regenerate my .classpath whenever a build is run, and I did so by using the following configuration: <!-- Generate a new .classpath each time the build is run, but don't try to download sources or javadocs --> <profile> <id>elipse-update</id> <acti...

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 instance is running the Eclipse version of Jetty, but the same version, 20091125. Is an...

How to run jetty:run-war using a war defined by maven coordinates?

Background: I'm setting up a functional tests module in a maven project. We use the maven-jetty-plugin for testing. I've got the jetty plugin set up as described here (to play nicely with the Failsafe plugin), but what I'd like to do is deploy the war artifact from our main web module using jetty (which has just been installed into the...

How can i deliver jetty with many webapps via jnlp?

Hello, i have a webapp (http://sourceforge.net/projects/sf-mvn-plugins/files/m2-repo/net/sf/maven/plugins/example-captaincasa-jnlp/0.1-SNAPSHOT/example-captaincasa-jnlp-0.1-SNAPSHOT.war/download) wich use jsf in a servlet container. This works fine with jetty-maven-plugin run-war target at my local pc. In the future i would like make mo...

hot deploy in embedded jetty

Hi, 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 ? Thanks ...

Maven jetty download dependencies

Hi, Why does every time I do "mvn jetty:run", maven tries to download some dependencies (apache poi and ojdbc jars) ? How can I disable this? [INFO] Scanning for projects.. [INFO] Searching repository for plugin with prefix: 'jetty'. [INFO] ------------------------------------------------------------------------ [INFO] Building inf...

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 outputting only WARN and INFO messages. I've tried setting -DDEBUG and -DVERBOSE, but they don't do...

Why 2 versions of jetty maven plugins ?

Hello, I set up a new webapp maven project and wanted to test it with jetty's maven plugin. So issuded in the console the command: mvn jetty:run After defining the pluginGroup in Maven's setting file I ran once again the command. Unfortunately, it failed because i was using one of the below mentioned versions of the plugin. The first h...

How to make jetty-maven-plugin deploy a war that is retrieved from a repository?

Hi there. I'm setting up an integration test module for a good sized web project. The integration test module is separated from the web project itself, and it has it's own pom. The idea is to use the maven-soapui-plugin to send requests and verify the response. Setting up the soapui-plugin is no hassle. However, I'm having trouble with...

Incremental build with NetBeans and Maven for jetty hot deployment

After my unsuccessful attempt to run Tomcat with hot deployment from NetBeans with Maven, I've tried jetty. The jetty-maven-plugin doc gave me an important hint: The plugin will automatically ensure the classes are rebuilt and up-to-date before deployment. If you change the source of a class and your IDE automatically compile...

Confusion about maven-war-plugin and jetty-maven-plugin

I am trying to get the run-exploded goal of the jetty-maven-plugin to work correctly. I find the documentation somewhat lacking on what I need to do to set this up. I believe I have a standard WAR-file setup. (The reason I wrote "believe" is that I find the maven-war-plugin documentation lacking as well.) When I build my webapp using ma...

How to prevent mvn jetty:run from executing test phase?

We use MySQL in production, and Derby for unit tests. Our pom.xml copies Derby version of persistence.xml before tests, and replaces it with the MySQL version in prepare-package phase: <plugin> <artifactId>maven-antrun-plugin</artifactId> <version>1.3</version> <executions> <execution> <id>copy-test-persistence</id> <p...

jetty - javax.naming.InvalidNameException: A flat name can only have a single component

I have been breaking my head against this for too much time now. I'm trying to get maven + jetty + jotm to play nice but it looks like its too much to ask for :( Below is my jetty.xml:- <?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"&gt; <Configure id="Server" cla...

Have maven run jetty on port 80 jetty in Linux

I don't know what's wrong with Jetty. My apache2 (run as a service) works fine on my Ubuntu, but Jetty always raise Permission Denied. I have come through some search result but ---I'm confused--- Would any one please provide an easy follow through that can allow me to invoke mvn jetty:run where jetty was set up to run on port 80? ...

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 jar) project-war/ pom.xml (packaging war, depends on project-jar) If I run mvn commands from th...

How does one set a custom WebAppClassLoader in Jetty through config?

Hi, all. I am trying to configure a Jetty (6.x) WebAppContext with a custom subclass of WebAppClassLoader. In code (Scala), it's simply this: val context = new WebAppContext() val cwacl = new CustomWebAppClassLoader(context) context.setClassLoader(cwacl) ... This works fine when embedding Jetty. In production, however, I ju...

maven jetty plug in mvn:jetty ServletContext.getRealPath("") and ServletRequest.getRealPath("") to point to target _instead_ of source folders?

SUMMARY: The goal is to find the path to the WEB-INF folder in the target folder for maven-jetty-plugin that is compatible with other servers as well. The ServletContext.getRealPath("") works beautifully for, e.g., Tomcat, or mvn jetty:run-war. Thank you Misha Dear All: This is related to http://tickets.openmrs.org/browse/TRUNK-1760...

Jetty JNDI error within Maven Jetty Plugin

I am trying to configure a JNDI data source that can be used from an invocation of the Maven Jetty Plugin. I am trying to do this external to the WAR file, so that anyone who might later deploy our webapp with Jetty will not have to edit a configuration file inside the WAR's WEB-INF directory. I created a jetty.xml file as follows: <?...