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.
The idea is to simply specify a list of javaagent in the plugin and reuse maven coordinates. For instance to add sirona javaagent:
<plugin> <groupId>org.apache.openejb.maven</groupId> <artifactId>tomee-maven-plugin</artifactId> <version>${tomee.version}</version> <configuration> <javaagents> <javaagent>org.apache.sirona:sirona-javaagent:${sirona.version}:jar:shaded</javaagent> </javaagents> <!-- other config --> </configuration> </plugin>