maven-jetty-plugin

Jetty Maven plugin - Put properties file in classpath

无人久伴 提交于 2019-12-20 01:48:05
问题 I'm using the eclipse jetty plugin in my project: <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.0.3.v20130506</version> I have my application that read a file in the classpath of the server, but I can't manage to put it in the Jetty classpath... I would to put it in a folder in my project and make that folder part of the Jetty classpath, how can I do it? Is there a better solution to make that file external to the application? 回答1: It was just a

File upload working under Jetty but not under Tomcat

半城伤御伤魂 提交于 2019-12-19 03:43:08
问题 I have a web application with spring in which I do some file upload. Under eclipse, using Jetty (the maven plugin) it works perfectly. But when I deploy the application under Tomcat it does not and I get the following Exception : org.springframework.web.bind.MissingServletRequestParameterException: Required org.springframework.web.multipart.MultipartFile parameter 'file' is not present org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker

Maven: How to use jetty:run in a multi-module Maven project, without needing to install

僤鯓⒐⒋嵵緔 提交于 2019-12-18 11:19:30
问题 I'm new to Maven. I have a multi-module maven 2 project that has the following structure (somewhat simplified): Project (POM packaging) | +-- Module1 (JAR) | | | +-- src | | | +-- main | | | +-- java | +-- resources | +-- Module2 (JAR) | | | ... | +-- Web Module (WAR) | ... I've configured the Web Module to include the Maven Jetty plugin. This works great for building the production artifacts. For development, I discovered that I need to call mvn install on any module that I change, followed

Possible to run two webapps at once when developing with Maven/Eclipse?

二次信任 提交于 2019-12-18 03:46:34
问题 Here's the problem: we build webapps for clients. We also have an "admin" webapp that modifies some client data structures. Because of the nature of the data, both webapps have to run in the same JVM. This is no problem in production; you just put two webapps in the same app server. We've recently switched to a Mavenish way of laying out webapps, though, and Maven wants one webapp per project. In Eclipse it's a problem, because if you run the different webapps independently, they'll be in

Possible to run two webapps at once when developing with Maven/Eclipse?

与世无争的帅哥 提交于 2019-12-18 03:45:12
问题 Here's the problem: we build webapps for clients. We also have an "admin" webapp that modifies some client data structures. Because of the nature of the data, both webapps have to run in the same JVM. This is no problem in production; you just put two webapps in the same app server. We've recently switched to a Mavenish way of laying out webapps, though, and Maven wants one webapp per project. In Eclipse it's a problem, because if you run the different webapps independently, they'll be in

Possible to run two webapps at once when developing with Maven/Eclipse?

感情迁移 提交于 2019-12-18 03:45:09
问题 Here's the problem: we build webapps for clients. We also have an "admin" webapp that modifies some client data structures. Because of the nature of the data, both webapps have to run in the same JVM. This is no problem in production; you just put two webapps in the same app server. We've recently switched to a Mavenish way of laying out webapps, though, and Maven wants one webapp per project. In Eclipse it's a problem, because if you run the different webapps independently, they'll be in

hot deploy in embedded jetty

只愿长相守 提交于 2019-12-17 22:20:28
问题 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? 回答1: You need to set the scanIntervalSeconds to a value greater than 0 to enable it: scanIntervalSeconds - The interval in seconds to scan the webapp for changes and restart the context if necessary. Ignored if reload is enabled. Disabled by default.

Multi-module Maven project and jetty:run

喜夏-厌秋 提交于 2019-12-17 21:46:40
问题 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 the root, everything works fine. I'd like to keep using mvn jetty:run , but for that I need to execute the command in the WAR subproject. If I do that, fails to

Jetty Maven Plugin is ignoring custom webdefault.xml

人走茶凉 提交于 2019-12-17 18:52:23
问题 I'm trying to get around the common issue of Jetty locking static files on Windows with the technique of setting useFileMappedBuffer to false in webdefault.xml. Unfortunately, every time Jetty is not picking up my customized webdefault.xml. I'm using Apache Maven 3.0.2. I've tried using the maven-jetty-plugin (v6.1.26) and jetty-maven-plugin (v8.0.0.M2) but with no difference. I've tried running clean and rebuilding as well before running Jetty. I've verified each time that my webdefault.xml

could not find Factory: javax.faces.context.FacesContextFactory

狂风中的少年 提交于 2019-12-17 06:38:08
问题 I notice that when trying to setup my JSF 2 webapp running on jetty, i have this error : java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory which is easily solved by adding this to my web.xml <listener> <listener-class> com.sun.faces.config.ConfigureListener </listener-class> </listener> I've tried searching for a detailed explanation but in futile .. jetty-maven-plugin:8.0.3.v20111011:run + jdk