关于Maven的新手问题 [英] Newbie question about maven

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

问题描述

我唯一需要打扰的配置文件是pom.xml吗?

Is it true that the only configuration file I need to bother with is pom.xml ?

在我看来,Java人比其他任何人都活着xml,这是真的吗?

It seems to me that Java guys live xml more than any other stuff,is that true?

推荐答案

Maven使用XML编写POM文件,因为XML是描述事物的好选择...而POM文件是 description 一个专案.我以为Maven实现者可以发明一种自定义语言,但是很多人会抱怨必须学习另一种语言语法.

Maven uses XML for POM files because XML is a good choice for describing things ... and a POM file is a description of a project. I supposed that the Maven implementors could have invented a custom language, but then lots of people would have complained about having to learn another language syntax.

用某种脚本语言表达Maven POM文件是没有意义的,因为它们在任何可识别的意义上都不是脚本".

It would make no sense to express Maven POM files in some kind of scripting language because they are not "scripts" in any recognizable sense.

在我看来,Java人比其他任何东西都活着xml,是这样吗?

It seems to me that Java guys live xml more than any other stuff,is that true?

不. "Java专家"使用各种技术来配置事物:XML,JSON,属性文件,数据库,定制语言,您可以说是有人使用过它.

No. "Java guys" use all sorts of technologies for configuring things: XML, JSON, properties files, databases, bespoke languages, you name it someone has used it.

如果您的问题是您讨厌使用XML,则可以:

If your problem is that you hate using XML, either:

  • 克服它,
  • 找到一个可以向您隐藏XML语法的编辑器
  • 使用(颤抖)Make
  • 使用(低语)构建用旧的旧脚本语言编写的脚本,或者
  • 走开并实施更好的解决方案.
  • get over it,
  • get an editor that hides the XML syntax from you,
  • use (shudder) Make,
  • use (whimper) build scripts written in some clunk old scripting language, or
  • go away and implement a better solution.

但是我会坚持使用Maven,谢谢.

But I'll stick with Maven, thanks.

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

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