TomEE Arquillian cache tip

TomEE Remote adapter is able to download TomEE, that’s pretty fine but by default it caches the downloaded artifact in target/ so if you run mvn clean it will download it again.

To avoid it you have two solutions:

  • add tomee artifact as a provided maven dependency: org.apache.tomee:apache-tomee:<version>:<classifier>:zip
  • set the property “openejb.deployer.cache.folder” (either as system property in surefire/failsafe, or as property in ~/.openejb/ to a fixed folder (/tmp should be fine). Note: this is only available on trunk (1.1.0-SNAPSHOT).

That’s a small tip but it can save some time 😉


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