Maven Polyglot发生了什么事? [英] What happened to Maven Polyglot?

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

问题描述

过去在 http://polyglot.sonatype.org/?

Maven 3中一个令人兴奋的新功能是它能够处理以非XML表示法编写的pom文件. Maven核心现在提供了底层DSL,以访问Maven内部,并以您选择的语言编写POM文件.当前,这包括脚本语言,例如Groovy,Ruby和其他语言.简而言之,您将能够为您喜欢的任何脚本语言编写DSL,可以将其挂接到Maven内部并试用Maven构建过程.

One exciting new feature in Maven 3 is it's ability to work with pom files written in non-XML notations. The Maven core now provides an underlying DSL to access the Maven internals, and write POM files in the language of your choice. This currently includes scripting languages like Groovy, Ruby, and others. In short, you will be able to write a DSL for virtually any scripting language you like that can hook into the Maven internals and pilot the Maven build process.

我在网络上发现了其他一些引用该功能的文章.

There are several additional articles on the web that I've found referencing the feature.

  • http://www.thinkplexx.com/learn/article/maven-learn-material/maven3/maven3-pom-using-groovy-ruby-scala-yaml-sonatype-polyglot
  • http://mattgivney.blogspot.com/2011/05/maven-3-polyglot-support.html

但是多语言网站现在重定向到sonatype.org,在

But the polyglot site now redirects to sonatype.org and I can find no mention of this feature in the Maven 3 release notes.

那怎么了?它是剪下来的还是放在里面的,只是没有在发行说明中记录?如果确实为Maven 3做好了准备,那么您可以参考一些文档.我对链接到的第一篇文章中提到的翻译器工具也很感兴趣.

So what happened? Was it cut or is it in there and just not documented in the release notes? If it did make the cut for Maven 3 could you point to some documentation. I am also interested in the translator tool mentioned by the first article I linked to.

推荐答案

Jason van Zyl的maven用户列表已更新:

There has been an update on the maven users list from Jason van Zyl: http://maven.40175.n5.nabble.com/What-happened-to-Polyglot-Maven-td5715529.html

我仍在和其他一些人一起努力. Dhanji具有 Atom标记有效,Kristian已实施了 Ruby DSL ,而Jason Dillon已经实现了 Groovy DSL ,它创建合成插件以将任意脚本绑定到Maven的生命周期.我最初的目的是了解其他标记和DSL如何利用Maven的基础架构.这些示例在消费者使用的范围内确实呈现出可互操作的格式. Maven本身显然不能运行Ruby DSL,但是如果您喜欢Ruby DSL,则可以使用它来构建一个不影响消费者的产品:您可以构建并部署到Maven存储库,而其他人可以使用Maven库存来消耗依赖项.

I'm still working on it along with a few others. Dhanji has the Atom markup working, Kristian has implemented a Ruby DSL, and Jason Dillon has implemented a Groovy DSL which creates synthetic plugins to bind arbitrary scripting to Maven's lifecycle. My original was to see how Maven's infrastructure could be leveraged by other markups and DSLs. These examples do render to an interoperable format insofar as consumers go. Maven itself obviously cannot run a Ruby DSL but if you like the Ruby DSL you can use it to build an not affect consumers: you can build and deploy to a Maven repository and someone else can consume the dependency with stock Maven.

我拥有所有可以立即进行一对一处理的早期采用者,因为我无法真正处理许多问题,但是如果您的兴趣超过了,请随时向我私人发送电子邮件.

I have all the early adopters I can deal with one-on-one right now, because I can't deal with many really, but if you have more than a passing interest feel free to email me privately.

看起来还活着:-)

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

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