Maven的更换? [英] Maven replacement?

查看:183
本文介绍了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的蚂蚁插件做一些基本的东西?​​

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的常青藤了大约一年,现在,我是pretty喜欢它。有一个学习曲线,虽然。但有一个活跃的邮件列表,作者是非常敏感。

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目标库,如决心,编译,安装,等等。这期望事情是在标准的Maven的地方(如的src / main / JAVA ),然后<进口> 目标到我的各种项目。这样,你得到最好的两个worlds- 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天全站免登陆