TomEE: A war without dependencies?

TomEE already supports to enrich an application with dependencies through ClassLoaderConfigurer configuration or using VirtualWebAppClassLoader of Tomcat. The first one has the drawback to be configured in the container and the second to not be very configurable/extensible.

That’s why we now have jars.txt!

The idea is simple: add jars.txt file to WEB-INF. The content will list dependencies. It can be file paths or urls (http, mvn by default).

Here a sample:


Note: if you are not using the provisining module of OpenEJB (using aether) mvn resolution will be done downloading from repo1 or a specified repo (mvn:!

Next step can be to get a maven plugin supporting or helping with the generation of such a file.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s