Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happened to Maven Polyglot?

What happened to the Maven Polyglot project that used to be at http://polyglot.sonatype.org/?

As described in this article,

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

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

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.

like image 693
James McMahon Avatar asked Jun 23 '12 13:06

James McMahon


4 Answers

This project is now named tesla-polyglot. I've just completed the Scala DSL for it, and tesla-polyglot should be released very soon now. We're just waiting on Maven 3.1.1 to roll out of the door.

like image 121
Christopher Hunt Avatar answered Nov 03 '22 23:11

Christopher Hunt


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

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.

looks like it is still alive :-)

like image 38
wemu Avatar answered Nov 03 '22 23:11

wemu


You won't believe it, but it's released (if you can call a 0.1 version a release).

like image 7
JBaruch Avatar answered Nov 03 '22 23:11

JBaruch


As of April 2016,
the home page is https://github.com/takari/polyglot-maven ,
the latest release is 0.1.15

There is Polyglot Maven IDE Pack for Eclipse, that includes some plugins.

There is also maven-tiles project https://github.com/repaint-io/maven-tiles , and quick trying out what Maven flavor works well shows that Groovy does better than others.

Be aware of Babylon Tower problem, so it is actually better when most of developers use the same flavor.

like image 5
Paul Verest Avatar answered Nov 03 '22 22:11

Paul Verest