maven-jetty-plugin

Exception using weld CDI with Jetty: Singleton not set for STATIC_INSTANCE

跟風遠走 提交于 2020-12-08 06:20:32
问题 I am trying to configure Jetty with JSF and Weld CDI. After following this manual, I stumble upon the following stacktrace: Caused by: java.lang.IllegalStateException: Singleton not set for STATIC_INSTANCE => [] at org.jboss.weld.bootstrap.api.helpers.RegistrySingletonProvider$RegistrySingleton.get(RegistrySingletonProvider.java:28) at org.jboss.weld.Container.instance(Container.java:55) at org.jboss.weld.SimpleCDI.<init>(SimpleCDI.java:77) at org.jboss.weld.environment.WeldProvider

Generate a jar with embedded Jetty using maven jetty plugin?

雨燕双飞 提交于 2020-02-22 06:12:25
问题 I use the mvn jetty:run goal from the maven jetty plugin to start my web application project, built using maven. Now I want to create a fat jar with embedded Jetty so that I will be able to start my app using java -jar . Is there a way to use the maven jetty plugin to generate a fat jar with embedded Jetty? 回答1: MarianP already answered your question in the comment. Add your jetty dependencies in your pom.xml <!-- jetty dependencies --> <dependency> <groupId>org.eclipse.jetty</groupId>

Generate a jar with embedded Jetty using maven jetty plugin?

北慕城南 提交于 2020-02-22 06:12:06
问题 I use the mvn jetty:run goal from the maven jetty plugin to start my web application project, built using maven. Now I want to create a fat jar with embedded Jetty so that I will be able to start my app using java -jar . Is there a way to use the maven jetty plugin to generate a fat jar with embedded Jetty? 回答1: MarianP already answered your question in the comment. Add your jetty dependencies in your pom.xml <!-- jetty dependencies --> <dependency> <groupId>org.eclipse.jetty</groupId>

maven-jetty-plugin question

家住魔仙堡 提交于 2020-01-17 01:21:41
问题 I need to start jetty before module tests. Example: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>jetty-test</groupId> <artifactId>jetty-test</artifactId> <version>1.0</version> <packaging>war</packaging> <build> <extensions> <extension> <groupId>org

Jetty 8.1.1.v20120215 in Eclipse with webapp (JSF + Maven)

南笙酒味 提交于 2020-01-01 04:36:08
问题 I am trying to run my webapp (using JSf) Jetty 8.1.1.v20120215 in Eclipse. I downloade Jettey Adaptor for Jetty and then added Jetty Server 8.1 in Eclipse. Then I stared my webapp under Jetty webserver. And got follwoing error. From statck trace it looks like Jetting is not getting some of the required jars. As have adde all those jar in my webapp in dependanceis as I am using maven. I can also see in eclipse those file listed in Eclipse under Refrenced Libaries. 2012-03-01 16:46:00.492:INFO

Configure logging for Jetty's maven plugin?

亡梦爱人 提交于 2019-12-30 05:37:26
问题 I'm invoking the "jetty:run" goal with the following plugin configuration: <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.4.4.v20110707</version> <configuration> <scanIntervalSeconds>5</scanIntervalSeconds> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <port>80</port> </connector> </connectors> </configuration> </plugin> Jetty refuses to log anything to slf4j in spite of the fact that my

How to override jetty.xml with jetty.port

。_饼干妹妹 提交于 2019-12-29 06:45:36
问题 I'm using maven-jetty-plugin and trying to override my jetty.xml setting with the -Djetty.port=8090 but it's not working. Only when I remove the connector part from the jetty.xml file I get the port to be 8090. So: mvn jetty:run -Djetty.port=8090 With the connector starts in port 8080 Without the connector starts in port 8090 Problem is I need to configure acceptors, stats and other stuff. I tried removing only the port from the connector but it didn't work. I'm using: JAVA 1.7_05 MAVEN 3.0.4

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

我的未来我决定 提交于 2019-12-25 02:38:05
问题 Could anyone help me with this!! My pom.xml "start the jetty server <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.14.v20131031</version> <executions> <execution> <phase> test </phase> <goals> <goal>start</goal> </goals> </execution> </executions> <configuration> <scanIntervalSeconds>0</scanIntervalSeconds> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <port>3663</port> <maxIdleTime>60000<

maven-jetty plugin not using correct paths

我与影子孤独终老i 提交于 2019-12-25 01:12:49
问题 I am using the jetty-maven plugin to deploy a web-app for integration testing. I have a project which consists of a two POMs. One in the root, and one in a directory in the project root (call this the webapp directory). When I run the integration test from maven (which uses the jetty-maven plugin), in the webapp directory, it works perfectly fine. However, when I run it from the root directory, it goes inside the webapp directory and runs the test but for some reason it gets the paths wrong.

Unable to access jetty server with local IP address

橙三吉。 提交于 2019-12-24 15:34:49
问题 I have configured jetty-maven-plugin in my eclipse Mars and I can run the server using jetty start and stop goals. I can able to access the website using http://localhost:8080/myapp but not using local IP address(i.e., http://192.168.0.5:8080/myapp ) from my own computer or other computers connected in the same network via LAN and Wi-Fi. As mentioned as a solution in these posts, how to make jetty server accessible from LAN? Configuring Jetty to accept connections from all hosts I configured