+ Changes needed for new Junit 5 + Migrating from Vintage junit API to Jupiter junit API + Relies on SNAPSHOT jetty-test-helper - this will be a formal release once this issue has been resolved satisfactory + Have jenkins always pull latest SNAPSHOT for each build + Adding jetty.snapshots repository + Using surefire 2.22.0 per advice from junit + Ensuring <reuseForks>true</reuseForks> to work around issue junit-team/junit5#801 + Disabling <forkMode>always</forkMode> in maven-surefire-plugin due to bug https://github.com/junit-team/junit5/issues/801 + OSGi tests must remain at vintage due to PaxExam + Moving from vintage TestingDir to jupiter WorkDir + Fixing imports to use jupiter, not vintage + Migrating vintage ExpectedException to jupiter assertThrows + Migrating vintage TestName to jupiter TestInfo + Migrating @RunWith(Parameterized.class) to @ParameterizedTest with Argument Sources + Migrating assertTrue(val.contains(needle)) to assertThat(val, containsString(needle)) + Aligning junit versions per recommendations from @sormuras + Adjusting parameter order change for assertEquals() + Test LifeCycle Annotation Migration junit 4 | junit 5 / jupiter ------------ | ----------- @Before | @BeforeEach @After | @AfterEach @BeforeClass | @BeforeAll @AfterClass | @AfterAll Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com> Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
Eclipse Jetty Canonical Repository
This is the canonical repository for the Jetty project, feel free to fork and contribute now!
Submitting a patch or pull request?
Make sure you have an Eclipse Contributor Agreement (ECA) on file.
Project description
Jetty is a lightweight highly scalable java based web server and servlet engine. Our goal is to support web protocols like HTTP, HTTP/2 and WebSocket in a high volume low latency way that provides maximum performance while retaining the ease of use and compatibility with years of servlet development. Jetty is a modern fully async web server that has a long history as a component oriented technology easily embedded into applications while still offering a solid traditional distribution for webapp deployment.
Documentation
Project documentation is available on the Jetty Eclipse website.
Building
To build, use:
mvn clean install
The Jetty distribution will be built in jetty-distribution/target/distribution
.
The first build may take a longer than expected as Maven downloads all the dependencies.
The build tests do a lot of stress testing, and on some machines it is necessary to set the file descriptor limit to greater than 2048 for the tests to all pass successfully.
It is possible to bypass tests by building with mvn -Dmaven.test.skip=true install
but note that this will not produce some of the test jars that are leveraged in other places in the build.
Professional Services
Expert advice and production support are available through Webtide.com.