Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WebSocketServerExamplesTest to work after maven surefire update #5154

Merged

Conversation

lachlan-roberts
Copy link
Contributor

If these example classes are in the org.eclipse.jetty.websocket.javax.server JPMS module they need to be unconditionally exported for WebSocketServerExamplesTest to be able to use them. So to get the test to work I have moved these example classes to websocket-javax-tests as it does not have a JPMS module.

The JPMS command line options don't seem to let you export unconditionally. I tried using both

--add-exports org.eclipse.jetty.websocket.javax.server/org.eclipse.jetty.websocket.javax.server.examples=ALL-UNNAMED

and

--add-exports org.eclipse.jetty.websocket.javax.server/org.eclipse.jetty.websocket.javax.server.examples=java.base

in the maven-surefire-plugin argline for websocket-javax-server but neither of them work, the package needs be exported unconditionally.

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
Copy link
Member

@olamy olamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lachlan-roberts lachlan-roberts merged commit 471a06d into jetty-10.0.x Aug 16, 2020
@lachlan-roberts lachlan-roberts deleted the jetty-10.0.x-SurefireUpdateWebSocketFailure branch August 16, 2020 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants