有没有办法通过 Maven 自动配置/部署功能来融合 ESB/Servicemix,比如 Tomcat 的货物?使用 ant+ssh 不是一个选项。
1 回答
I'm currently finalizing a client wrapped in a maven plugin that will do just that, but instead of the fusesource approach of using the hot deployment folder I connect directly to the remote karaf console and execute the commands required to (un)install features.
The auto deploy is part of automated regression tests executed by Jenkins through a set of SoapUI test scripts.
Basically I use apache SSHD to connect to karaf (see an example here: https://cwiki.apache.org/KARAF/63-programmatically-connect-to-the-console.html) and some custom code to execute the commands and parse the result.