Monthly Archives: May 2009

How to make a plugin that runs once during a build


May 22, 2009 By
Brian Fox

With it’s default behavior, Maven runs a plugin invocation for each project in a multi-module build. For plugins that operate on a single project at a time, this is what the author wants.

Some plugins are what we call “aggregators” which means they actually do want all the information about the full multi-module build before execution. These plugins, when run on a tree of projects cause Maven to resolve all the children before calling the plugin’s execute() method. In this mode a plugin executes just once, but effectively on the whole tree at once. (as a side note, you never want to bind an aggregator goal in your pom as this would cause the plugin to run an n! recursive build since the lifecycle would step into each child and execute the aggregator…which would cause Maven to reresolve all the children, etc)

Sometimes neither of those behaviors are what you want.

Continue reading...

Categories: Uncategorized

We're Used to the Axe Grinding


May 13, 2009 By
Tim O'Brien

It escapes me what positive benefit people derive from dumping their accumulated angst with Maven on a blog, but it tends to happen every so often. Each of these posts tends to expose more about the person that wrote the post than about Maven itself. Here’s where I think the most recent post goes wrong:

Continue reading...

Categories: Uncategorized

Nexus Indexer 2.0: incremental downloading


By
Damian Bradicich

The nexus indexer has become fairly popular, and is the de-facto standard when it comes to indexing maven repositories (including the big boy, central). As repositories grow and grow, the index of artifacts grows right along with them. What was initially a small few hundred kilobyte file, will grow into 20-30 megabytes or more over […]

Continue reading...

Categories: Uncategorized

The Ulitimate Java Build System


May 6, 2009 By
Tim O'Brien

Christopher Judd places Nexus, Hudson, and Maven in his “Ultimate Java Build System” stack: “Now after all these years, I think I found the right solutions for Enterprise Java Builds. The solution involves 5 open source projects: Maven, Subversion, Hudson, Nexus, Sonar.” We’re convinced that Nexus provides the best option for repository management, and as […]

Continue reading...

Categories: Uncategorized