667514 members! Sign up to stay informed.

Sponsored Links


Resources

Enterprise Java
Research Library

Get Java white papers, product information, case studies and webcasts

News News News Messages: 7 Messages: 7 Messages: 7 Printer friendly Printer friendly Printer friendly Post reply Post reply Post reply XML XML XML

Blog post: Writing your Maven 3 pom files in Groovy

Posted by: John Smart on October 27, 2009 DIGG
Maven 3 is promising to be the most significant upgrade since the release of Maven 2. While maintaining backward compatibility with existing Maven 2 projects, it introduces a number of powerful and compelling new features, such as a complete rewrite of the internal architecture, OSGi support and multi-language pom files. In this article, I will be giving a preview of this last feature.

You can learn more in the following blog entry:
"Writing your pom files in Groovy - a sneek preview of Maven 3's polyglot features".

Threaded replies

·  Blog post: Writing your Maven 3 pom files in Groovy by John Smart on Tue Oct 27 02:30:05 EDT 2009
  ·  Useless. by Alex Besogonov on Tue Oct 27 08:44:10 EDT 2009
    ·  Re: Useless. by Rashid Jilani on Tue Oct 27 09:10:06 EDT 2009
    ·  Re: Useless. by Patrick Angeles on Tue Oct 27 12:01:24 EDT 2009
      ·  Maven 3 jealous of Gradle? ;) by Matthew Passell on Tue Oct 27 13:12:20 EDT 2009
        ·  Re: Maven 3 jealous of Gradle? ;) by Dan Diephouse on Tue Oct 27 17:37:01 EDT 2009
      ·  Re: Useless. by Peter Pan on Thu Oct 29 05:57:35 EDT 2009
  ·  Re: Blog post: Writing your Maven 3 pom files in Groovy by Kristoffer Sjögren on Mon Nov 02 10:36:30 EST 2009
  Message #328346 Post reply Post reply Post reply Go to top Go to top Go to top

Useless.

Posted by: Alex Besogonov on October 27, 2009 in response to Message #327172
So, you've replaced a declarative, parsable format with imperative, Turing-complete code which can't be parsed or modified by an IDE.

And all this for... nothing?

Congratulations!

PS: sometimes anti-XML fervor is just as bad as earlier XML fervor.

  Message #328347 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Useless.

Posted by: Rashid Jilani on October 27, 2009 in response to Message #328346
PS: sometimes anti-XML fervor is just as bad as earlier XML fervor.


Well said, and couldn't agree more. Early 2000 was an era where we are putting every thing in XML, now even for things that make sense to be in XML are pushing back to code. It reminds me what a shallow community (IT) we belong to.

  Message #328360 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Useless.

Posted by: Patrick Angeles on October 27, 2009 in response to Message #328346
+1

Although accessing or updating the POM programmatically is good, having the ability to externally define the POM using any language is a slippery slope. Better to stick with universal XML. Or even a DSL. The important thing is it should be universal. I don't want to have to learn a new language just so I can understand someone else's POM.

  Message #328363 Post reply Post reply Post reply Go to top Go to top Go to top

Maven 3 jealous of Gradle? ;)

Posted by: Matthew Passell on October 27, 2009 in response to Message #328360
Maybe Maven 3 is just jealous of Gradle, the Groovy-based build DSL. Gradle's founder, Hans Dockter, gave a great presentation on Gradle at SpringOne2GX. Before anyone starts to use Groovy to drive Maven, they should first take a look at Gradle.

--Matt
The Software Grove

  Message #328372 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Maven 3 jealous of Gradle? ;)

Posted by: Dan Diephouse on October 27, 2009 in response to Message #328363
Umm no, but nice plug.

  Message #328539 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Useless.

Posted by: Peter Pan on October 29, 2009 in response to Message #328360
It’s not very expensive to choose the buy dissertation receive the perfect note just about December 15, 2008 and bring it to buy thesis. And the custom writing services thank you for this!

  Message #328655 Post reply Post reply Post reply Go to top Go to top Go to top

Re: Blog post: Writing your Maven 3 pom files in Groovy

Posted by: Kristoffer Sjögren on November 02, 2009 in response to Message #327172
Hi

I have looked for a feature where i can define some kind of template or profile centrally and inherit that for each "component". A component for us, has a special meaning in maven. For example, a general definition of a component is a maven pom type project and may contain the following projects:

* EAR (depends on all other projects within this component)
* IF (no dependencies)
* EJB (ejb type project that depend on interface project)
* WAR (war type project that depend on interface AND ejb project)
* RAR (rar type project that depend on the interface project)

There are other type of projects that are part of this definition but i have left them out here for brevity. We also have a couple of profiles and plugins that we need for each and every component. Together, this make our pom file very verbose.

Our system consist of quite many components (~35-45, each with maybe 5-6 projects) and so we repeat ourselves alot and it's hard to maintain consistency throughout the system.

We did construct such a building system in Ant previously, and I havent found any similar feature in Maven or if it is even possible to do with a plugin?

Cheers,
-Kristoffer

New content on TheServerSide.comNew content on TheServerSide.comNew content on TheServerSide.com

Dependency Injection in Java EE 6 - Part 1

Reza Rahman explores the features of the proposed JSR 299, Contexts and Dependency Injection for Java EE (CDI). When approved, it promises to be a key feature of Java EE 6. (November 2, Article)

SAML: It's Not just for Web services

SAML is an XML-based standard for exchanging authentication and authorization data between security domains. The single most important problem that SAML was created to solve is the Web browser Single Sign-On problem. Many organizations are debating whether to stay with version 1.1 or move to 2.0. This article makes observations about both options. (September 28, Article)

Programming is Also Teaching Your Team

Joe Ottinger takes a look at how people learn, and applies it to the practice of programming. He notes that understanding how people learn is an essential part of working in a programming team. (September 22, Article)

Can Java EE Deliver The Asynchronous Web?

Stephen Maryka gave us an article about the Asynchronous Web and posed a number of questions that get examined like an approach to delivering Asynchronous Web capabilities through extensions to existing Java EE technologies. (July 14, Article)

JSF Flex

JavaServer Faces Flex goal is to provide users capability in creating standard Flex components, part of flexSDK which is open sourced through MPL license, as normal JSF components. This article by Ji Hoon Kim will provide an overview of creating a simple multilingual JSF page consisting of JSF Flex tags. (June 29, Article)

The Rules of SOA - A Road to a Successful SOA Implementation

In this session Jeff explores the key characteristics of successful SOA projects. He covers some of the patterns, and anti-patterns, tool sets, and strategies that he himself learned the hard way. Last, he provides a strategy and blueprint for achieving a high likelihood of success in your SOA project. (June 23, Tech Talk)

Ari Zilka Talks About Terracotta 3.1

Ari Zilka, CTO of Terracotta, Inc., talks about the new features in Terracotta 3.1, announced during JavaOne and available now. (June 15, Tech Talk)

Enterprise Application Integration, and Spring

In this Tech Talk, Josh Long explores an integration challenge using Spring Integration and walks through the implementation, employing and expanding on the basic patterns of Enterprise Application Integration to tie together components into a function integration solution, and then demonstrates how Spring Integration helps address the integration requirements. (June 15, Tech Talk)

Google Web Toolkit: An Introduction

In this Tech Talk, David Geary teaches you: The basics of Google Web Toolkit; How to implement Ajax-enabled applications in Java; Internationalization; Hooking into the browser history mechanism; Remote procedure calls. (June 4, Tech Talk)

Just Enough Early Architecture to Guide Development

Jon Kern discusses the best architecture/technical solutions and ensure that they are repeated by all developers. By tackling the architecture up-front in a serial manner, subsequent parallel development will be much more manageable and predictable. (May 28, Tech Talk)

Productive Programmer: On the Lam from the Furniture Police

This keynote describes the frustrations of modern knowledge workers in their quest to actually get some work done, and solutions for how to guard yourself against all those distractions. Neal Ford talks about environments, coding, acceleration, automation, and avoiding repetition as ways to defeat the misguided attempts to sap your ability to produce good work. (May 26, Tech Talk)

Auto-Scaling Your Existing Web Application

Gil demonstrates how new, aggressive uses of already abundant compute capacity by common applications offer competitive value for application designers. (May 21, Tech Talk)

Automating Hibernate Mapping and Queries For Java Web Development

Chris Keene introduces WaveMaker as a new way to automate the ability to generate Hibernate classes in order to more quickly bring OR mapping into an application. (May 19, Article)

Auto-Scaling Your Existing Web Application

In this session Nati Shalom demonstrates how to take a standard Java EE web application and scale it out or down dynamically without changes to the application code. Seeing as most web applications are over-provisioned to meet infrequent peak loads, this is a dramatic change because it enables growing your application as needed, when needed, without paying for unutilized resources. (May 19, Tech Talk)

Free Book PDF Download: Mastering EJB Third Edition

Mastering EJB was one of the original and most influential EJB books in the industry. Mastering EJB III now returns with two new expert co-authors, updated for EJB 2.1 and 30% new chapters including security, integration, best practices, open source, and more.
(Book PDF Download)

Application Server Matrix

The Application Server Matrix is a detailed listing of J2EE vendors and their application server products, with information on latest version numbers, J2EE spec support and licensing, pricing, platform support, and links to product downloads and reviews.
(Application Server Comparison Matrix)

News | Blogs | Discussions | Tech talks | Patterns | Reviews | White Papers | Downloads | Articles | Media kit | About
Java Solutions
All Content Copyright ©2007 TheServerSide Privacy Policy
Site Map