Until now adding a javaagent to tomee with the tomee maven plugin needed to get the path of the javaagent with a third party plugin (dependency plugin was common). This was making poms huge and the logic quite useless.
Since few days you can get rid of it.
When depending on a FTP in production we often simulate it through a
local file in dev and sometimes in preprod. That’s great and avoid to
need a big infra in all environment but make ftp dependencies optional
before the prod…so you risk to clean them and miss them in prod.
To avoid it it is easy to test FTP through JUnit using MockFtp project.