maven-jetty-plugin

How to filter resources when using maven jetty plugin?

和自甴很熟 提交于 2019-11-27 15:08:26
问题 I have an XML file (urlrewrite.xml) that needs a property placeholder resolved. I enable Maven filtering to achieve this. This works fine for the assembled WAR file. <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> The problem is when trying to run the application in development mode using the maven-jetty-plugin (Maven Jetty Plugin), as maven jetty:run . The file in question, urlrewrite.xml, is located in the src/main/resources

How to control VM arguments for maven-jetty-plugin?

前提是你 提交于 2019-11-27 03:23:10
How to set VM arguments for Jetty run from maven-jetty-plugin? For example, I need to pass -Xmx arguments to Jetty run by the mvn jetty:run command. The enviroment variable MAVEN_OPTS is the answer. The string content of MAVEN_OPTS is passed to JVM (java.exe). Linux: in shell type export MAVEN_OPTS=.... Windows: in shell (cmd.exe) type set MAVEN_OPTS=... For example: on Windows set MAVEN_OPTS="-Xmx1024m" sets the heap size of the Maven process to 1024mb. Update (01.04.2013): Pass it directly to Jetty. Matthew Farwell (please upvote his answer to give him credit) comes with the solution of

Strange java.lang.ArrayIndexOutOfBoundsException thrown on jetty startup

 ̄綄美尐妖づ 提交于 2019-11-27 03:19:47
问题 Whenever I deploy jetty application I hit this issue. Looks like some jar or class is broken. Colleagues compiling exactly same code, doesn't hit the issue. Even if the deploy to the same computer. (we use git and maven ) Deleting local maven repository ~/.m2 and rebuilding doesn't help. Can run same jetty app locally without any issues. My initial suspect was that some jar is broken. Tried jar tvf $every_jar and haven't found anything. Any ideas how can I debug this? Looks really mysterious

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

♀尐吖头ヾ 提交于 2019-11-27 01:01:18
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 7 + eclipse indigo And here's my maven dependency : <dependencies> <dependency> <groupId>org.glassfish

JSF welcome file is not recognized [duplicate]

蹲街弑〆低调 提交于 2019-11-26 18:33:22
问题 This question already has an answer here: Set default home page via <welcome-file> in JSF project 3 answers Accessing http://localhost:8080/basicSetup/faces/index.xhtml works, with the output of : Hello World ! Albert Kam but accessing http://localhost:8080/basicSetup shows Hello World ! #{myBean.value} meaning that the welcome file is not rendered as a JSF file I would like http://localhost:8080/basicSetup to have the same effect as accessing http://localhost:8080/basicSetup/faces/index

How to control VM arguments for maven-jetty-plugin?

僤鯓⒐⒋嵵緔 提交于 2019-11-26 10:27:42
问题 How to set VM arguments for Jetty run from maven-jetty-plugin? For example, I need to pass -Xmx arguments to Jetty run by the mvn jetty:run command. 回答1: The enviroment variable MAVEN_OPTS is the answer. The string content of MAVEN_OPTS is passed to JVM (java.exe). Linux: in shell type export MAVEN_OPTS=.... Windows: in shell (cmd.exe) type set MAVEN_OPTS=... For example: on Windows set MAVEN_OPTS="-Xmx1024m" sets the heap size of the Maven process to 1024mb. Update (01.04.2013): Pass it