Apache revs Maven for greater speed and extensibility

The updated Apache Maven project management software can build apps faster and play nicer with others

The Apache Foundation has completed a major upgrade of its Maven software build system, making it speedier and more extensible.

A project two years in the making, this version of Maven is a reengineering of the core architecture, said Brian Fox, the Apache Foundation's vice president of the Maven project.

"There were some places where we wanted to extend Maven 2 in directions that were not possible given the architecture," Fox said. "This release has been about resetting the internal architecture so we can address those issues."

Users of this version have reported 10 percent to 40 percent improvements in build time over Maven 2.x versions. The software's creators have worked to maintain backward compatibility with plug-ins built for version 2, while making the software easier to use with other development tools, Fox said.

A big part of the reengineering project has been to switch from a legacy Plexus framework to the more widely used Google Guice framework for Maven's container management duties. Guice is speedier and the way it handles containers may be more readily understood by Java developers, which, in turn, should make Maven more extensible for use by other development tools, Fox said.

"It should be easier for people to work not only on Maven but to be able to write plug-ins and extend Maven itself," Fox said. Thus far, hundreds of plug-ins have been developed for Maven, for handling such tasks as code generation or code quality analysis.

And because Guice resembles Plexus, it was not too difficult for Maven's developers to create shims that could replicate Plexus' behavior, which ensures the backward compatibility.

Other new features: The dependency resolution logic--the logic guiding the versioning of the software assets--has been decoupled from the Maven core, which should also allow the external build systems to interact more easily with Maven. Also, the software can now do simultaneous builds on the same computer, which will allow developers to test two different configurations of a program at the same time.

Under development for 10 years, Maven is software that can orchestrate the many processes required to build and manage a complex piece of software from a set of source files.

Java developers might see Maven as the natural evolution from other Java build management tools, notably Make and Ant. Maven has a number of novel approaches in this space, including the practice of convention-over-configuration and a declarative model, both of which facilitate speedier automation of common build tasks. The software also facilitates easy reuse of binary components, called artifacts, which allows developers to test a single module within a large program without recompiling the entire program.

"Once you produce an official binary artifact, it shouldn't need to be produced again. It has a unique set of coordinates and identity, and a repository manager can hold onto it, just like a version of a source file," Fox said.

Although it is primarily used for enterprise Java projects, Maven is also used for C programs and other languages running on the JVM (Java Virtual Machine). Apache does not keep statistics on Maven's userbase, though the project has estimated that the software has had millions of users.

In addition to his duties at Apache, Fox also works as a vice president of engineering for Silver Spring, Maryland-based Sonatype, which runs a commercial repository for Maven artifacts, and tools for Maven. Sonatype just mirrored its repository in Europe and Asia for easier accessibility from those continents.

Joab Jackson covers enterprise software and general technology breaking news for The IDG News Service. Follow Joab on Twitter at @Joab_Jackson. Joab's e-mail address is Joab_Jackson@idg.com

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags open sourceproject managementsoftwareapplicationsapacheApache FoundationMavenProduct lifecycle management

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Joab Jackson

IDG News Service
Show Comments





Back To Business Guide

Click for more ›

Brand Post

Bitdefender 2018

Roam freely in the digital world. Critically acclaimed performance and security at your fingertips.

Most Popular Reviews

Latest Articles


PCW Evaluation Team

Louise Coady

Brother MFC-L9570CDW Multifunction Printer

The printer was convenient, produced clear and vibrant images and was very easy to use

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Walid Mikhael

Brother QL-820NWB Professional Label Printer

It’s easy to set up, it’s compact and quiet when printing and to top if off, the print quality is excellent. This is hands down the best printer I’ve used for printing labels.

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?