mvn package cargo:run
mvn package cargo:run -Dcargo.debug=true
This will add -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y
.
mvn verify
The JETTY_BASE
needs to be set up with the following with the war deployed at JETTY_BASE/webapp
.
cd $JETTY_BASE
java -jar $JETTY_HOME/start.jar --add-modules=http,ee10-deploy,ee10-annotations,ee10-websocket-jakarta,ee10-cdi-decorate
Currently Jetty 12 requires a custom ServletContainerInitializer
to explicitly set the CDI Provider to the WeldProvider
due to the following issue jetty/jetty.project#10150 as the presence of the jakarta.enterprise.cdi-api
library in the Jetty classpath causes the ServiceLoader
not to find the WeldProvider
. This is implemented in WeldServletContainerInitializer
.
The server can be started with the following.
cd $JETTY_BASE
java -jar $JETTY_HOME/start.jar