我正在使用 Maven 作为构建工具,并试图将大量手动流程转换为简化的流程。
我有一个 Web 应用程序,它使用当前在部署时通过 SoX 任务运行的音频文件:http ://sox.sourceforge.net/将它们转换为所需的采样率和目标文件夹。(使用 .bat 文件的手动步骤)
是否有将音频构建组件集成到 Maven 构建中的插件或简化方法?
我曾考虑过使用嵌入的 Ant 脚本,但不确定这是否是正确的方向。
干杯
It is not difficult to create your own Maven plugin (Mojo). Take a look at the Mojo Developers Cookbook
[Edit ]
I should also mention that you could run the .bat
script using the Exec Maven Plugin as a less portable alternative. The exec
plugin source code is also a good place to start were you to write your own SoX plugin.