maven-jetty-plugin

CDI invalid bean archive scanning in Jetty (not in Tomcat)

此生再无相见时 提交于 2019-12-24 04:57:08
问题 I thought I got the most about Weld and CDI but this assumption is always demonstrating false. This time I am facing a weird behavior about bean scanning. Everything (a multi-module maven project) runs fine in Tomcat, but I got problems when it runs in the Maven Jetty 9 plugin: java.lang.IllegalStateException: WELD-ENV-000033: Invalid bean archive scanning result - found multiple results with the same reference: /home/myuser/workspace/my-root-project/my-web-module/target/classes at org

Run Jetty with jetty-maven-plugin and finish the build when jetty is running

大城市里の小女人 提交于 2019-12-24 01:01:55
问题 I want to Run Jetty with jetty-maven-plugin and finish the build when jetty is running. I created a pom.xml that starts jetty and deploying a war file, after the jetty starts I want maven to finish the build while leaving the jetty running, So that I could start another maven build to run tests on the server I just ran jetty on. Then I will create another maven build that just stops the jetty server. Problem is that I didn't managed to start jetty and make the maven build stop after that,

Use Log4j with jetty-maven-plugin 9.x

百般思念 提交于 2019-12-24 00:23:30
问题 How can I enable Log4j for jetty-maven-plugin 9? I followed the Jetty documentation for standalone Jetty 9 and added JARs and property file. Jetty configuration: <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.0.5.v20130815</version> <configuration> <webApp> <contextPath>/mywebapp</contextPath> <jettyEnvXml>jetty-env.xml</jettyEnvXml> </webApp> <systemProperties> <systemProperty> <name>log4j.configuration</name> <value>log4j-jetty

Jacoco and jetty maven plugin gets 0% coverage

拥有回忆 提交于 2019-12-23 05:23:11
问题 I'm trying to setup jacoco to get the coverage for my integration tests. I'm running my integration tests against jetty (using the maven plugin). But even if i pass the agent in the jam args when starting up the jetty server the jacoco report shows 0%. Here is my pom.xml <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <executions> <execution> <id>start-jetty</id> <phase>pre-integration-test</phase> <goals> <goal>run-forked</goal> </goals> <configuration>

maven jetty plugin - remove localhost/server name from url

只愿长相守 提交于 2019-12-23 04:53:26
问题 i am running my web application using maven jetty plugin. I can access my web application either through localhost , ip or server name . But let say i want to access my application using application name. eg. http://ip:port/login/login.jsp http://servername:port/login/login.jsp I want it something like, no port or ip. http://applicationname/login/login.jsp pom.xml <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.9.v20130131</version>

Jetty JNDI error within Maven Jetty Plugin

孤人 提交于 2019-12-22 10:19:47
问题 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: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure

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

天涯浪子 提交于 2019-12-22 08:38:33
问题 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 figuring out how I can tell the jetty-maven-plugin to deploy a war from a remote repository. If I have understood correctly, the jetty-maven-plugin has a property called

Setting debug configuration for maven+jetty+eclipse

大城市里の小女人 提交于 2019-12-20 09:02:54
问题 I have created a web app using maven in eclipse. I am using jetty for running the app. I am able to run the app using the maven jetty plugin. But I am facing difficulty while debugging the app - The steps that i have followed to setup debug settings are from the below link http://www.clickonchris.com/2010/05/configuring-jetty-maven-and-eclipse-together-with-hot-deploy/ I can run the app at port 8080 and it keeps on Listening for transport dt_socket at address: 4000. For debugging i have given

How to ignore maven profiles in child module?

二次信任 提交于 2019-12-20 05:49:15
问题 I want to run the simple flow, I have 6 profiles: generate-schema,unpack-war,run-jetty,test,stop-jetty,start-stop-app the test profile will run on a different child module when I declare it in the mvn goals/properties: * clean --activate-profiles generate-schema,unpack-war,start-stop-app,test --projects apm-tests,apm-tests\apm-adapter-tests verify.* How can I make the child module run only the tests and skip the rest of the profiles (generate-schema and etc.) ? Parent pom sample: <?xml

Build waits at Jetty start when running integration tests

感情迁移 提交于 2019-12-20 04:23:36
问题 I'm trying to run some integration / acceptance tests. I want to run these tests only when passed an environment variable, and so I use the following command: mvn clean install -Denv="acceptance" But the build stops at 2015-09-28 18:56:19.273:INFO:oejsh.ContextHandler:main: Started o.e.j.m.p.JettyWebAppContext@4bbc9862{/,file:///home/stephane/dev/java/projects/kahoot-rest/src/main/webapp/,AVAILABLE}{file:///home/stephane/dev/java/projects/kahoot-rest/src/main/webapp/} 2015-09-28 18:56:19.419