您建议用什么来替代 Maven Java 构建工具集?只是简单的 Ant 脚本吗? SCons?
无论如何,这取决于你使用什么。马文1?马文2?我发现 Maven 2 有很好的文档记录,并且在与 Ant 任务和一些自制的 Java 插件结合使用时非常强大。
有一些 Ant 任务可以使用 Ant 中的 Maven 功能:http://maven.apache.org/ant-tasks/index.html http://maven.apache.org/ant-tasks/index.html。所以你真的不需要编写自己的“库”。
您可以从 Maven 调用 Ant:http://maven.apache.org/plugins/maven-antrun-plugin/ http://maven.apache.org/plugins/maven-antrun-plugin/ .
您还可以使用 Groovy 编写脚本,例如:http://groovy.codehaus.org/GMaven+-+Executing+Groovy+Code http://groovy.codehaus.org/GMaven+-+Executing+Groovy+Code .
或者只为您需要的自定义位编写 Java 代码:http://maven.apache.org/guides/plugin/guide-java-plugin-development.html http://maven.apache.org/guides/plugin/guide-java-plugin-development.html .
当你可以做到时,没有理由不混合搭配;)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)