1、git上拉代码:https://github.com/zhongxiankui/jetty.project.git
2、cd到代码目录jetty.project,mvn install,期间会碰到诸如:
[ERROR] Failed to execute goal on project cdi-websocket: Could not resolve dependencies for project org.eclipse.jetty.cdi:cdi-websocket:jar:9.4.1-SNAPSHOT: Could not find artifact org.eclipse.jetty.cdi:cdi-core:jar:tests:9.4.1-SNAPSHOT in tbmirror-snapshots (http://mvnrepo.alibaba-inc.com/mvn/repository)
类似ERROR到对应的目录下jetty.cdi/cdi-core 去 mvn install。
3、最后到jetty源文件目录/jetty.project/jetty-distribution/target/distribution 下执行java -jar start.jar即可run起来。