Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] curl: (56) Unexpected EOF

Glen,

not it's not just the META-INF/services/org.eclipse.jetty.http.HttpFieldPreEncoder file I'm concerned with, but any META-INF/services/* file, with examples including:
  • com.sun.net.httpserver.spi.HttpServerProvider
  • javax.servlet.ServletContainerInitializer
  • javax.websocket.ContainerProvider
  • javax.websocket.server.ServerEndpointConfig$Configurator
  • org.apache.juli.logging.Log
  • org.eclipse.jetty.http.HttpFieldPreEncoder
  • org.eclipse.jetty.io.ssl.ALPNProcessor$Client
  • org.eclipse.jetty.io.ssl.ALPNProcessor$Server
  • org.eclipse.jetty.websocket.api.extensions.Extension
  • org.eclipse.jetty.xml.ConfigurationProcessorFactory
The ServicesResourceTransformer linked by Steven is probably what you need to make sure all these files are correctly shaded.



On Tue, 8 Oct 2019 at 06:56, Steven Schlansker <stevenschlansker@xxxxxxxxx> wrote:

> On Oct 7, 2019, at 12:33 PM, Glen Peterson <glen.k.peterson@xxxxxxxxx> wrote:
> ...
> I'm using the Maven Shade plugin.  What would you recommend as a better tool to make a fat jar?  I tried Gradle too, but went back to Maven specifically because the Shade plugin had better debugging info than the Gradle Shadow plugin.  Maybe I just don't know how to work it.

Are you familiar with https://maven.apache.org/plugins/maven-shade-plugin/examples/resource-transformers.html#ServicesResourceTransformer ?  That's how we got this working in the past (before we ditched shading entirely since it's such a mess).

_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users


--

Back to the top