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/system.properties) 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 😉