Maven替换? [英] Maven replacement?

查看:162
本文介绍了Maven替换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您建议用什么替代Maven Java构建工具集?只是纯Ant脚本? SCons?

What would you suggest as a replacement to the Maven Java build toolset? Just plain Ant scripts? SCons?

推荐答案

虽然我喜欢Maven的想法但最简单的配置。它的架构是基于插件的,插件的质量差别很大。文档最好是粗略的;一半的时间,我不知道如果我正在阅读的文档是为Maven 1或2.多久你不得不诉诸使用 maven-ant插件

While I like the idea of Maven, I always find myself fighting it for anything but the simplest configurations. Its architecture is plugin-based, and the quality of the plugins varies widely. Documentation is sketchy at best; half the time I can't figure out if the doc I'm reading is for Maven 1 or 2. And how often have you had to resort to using the maven-ant-plugin to do something basic?

我一直在使用 Apache Ivy 大约一年了,我很高兴。有一点学习曲线虽然。但是有一个活跃的邮件列表,作者是非常敏感的。

I've been using Apache Ivy for about a year now, and I'm pretty happy with it. There is a bit of a learning curve though. But there's an active mailing list, and the author is very responsive.

我最后做的是写一个库几个简单的Ant目标,如resolve (例如 src / main / java ),然后< import> 将目标导入我的各个项目。这样你就能获得两个世界的最好的 - Maven风格的配置和Ant的所有力量。

What I ended up doing was writing a "library" of a few simple Ant targets such as "resolve", "compile", "install", etc. that expect things to be in standard Maven places (such as src/main/java) and then <import> the targets into my various projects. This way you get the best of both worlds- Maven-style configuration, and all the power of Ant.

这篇关于Maven替换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆