I use Maven for the actual build. I use these dependencies (with 9.0.0.M26):
org.apache.tomcat.embed
tomcat-embed-core
org.apache.tomcat.embed
tomcat-embed-el
org.apache.tomcat
tomcat-juli
org.apache.tomcat.embed
tomcat-embed-websocket
And use the Capsule Maven Plugin to build the actual runtime (better
isolation than a shaded JAR):
com.github.chrisdchristo
capsule-maven-plugin
${capsule.maven.plugin.version}
build
your.main.class.here
fat
And then the actual bootstrap would look like this:
https://paste.apache.org/vVNs (I put it in a paste since it's pretty long).
On Sat, Sep 30, 2017 at 4:51 AM Brian Toal wrote:
> Can someone point me to a example of how to run Tomcat as a embedded
> application, packaged in a uber jar? I'm not interested in running via a
> war. I've struggled to find a example.
>