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 Good Gear Guide newsletter!

Error: Please check your email address.

Tags open sourceapplicationsProduct lifecycle managementApache FoundationMavensoftwareapacheproject management

Our Back to Business guide highlights the best products for you to boost your productivity at home, on the road, at the office, or in the classroom.

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

Essentials

Lexar® JumpDrive® S57 USB 3.0 flash drive

Learn more >

Microsoft L5V-00027 Sculpt Ergonomic Keyboard Desktop

Learn more >

Mobile

Lexar® JumpDrive® S45 USB 3.0 flash drive 

Learn more >

Exec

Audio-Technica ATH-ANC70 Noise Cancelling Headphones

Learn more >

Lexar® Professional 1800x microSDHC™/microSDXC™ UHS-II cards 

Learn more >

Lexar® JumpDrive® C20c USB Type-C flash drive 

Learn more >

HD Pan/Tilt Wi-Fi Camera with Night Vision NC450

Learn more >

Budget

Back To Business Guide

Click for more ›

Most Popular Reviews

Latest News Articles

Resources

PCW Evaluation Team

Michael Hargreaves

Windows 10 for Business / Dell XPS

I’d happily recommend this touchscreen laptop and Windows 10 as a great way to get serious work done at a desk or on the road.

Aysha Strobbe

Windows 10 / HP Spectre

Ultimately, I think the Windows 10 environment is excellent for me as it caters for so many different uses. The inclusion of the Xbox app is also great for when you need some downtime too!

Mark Escubio

Windows 10 / Lenovo Yoga

For me, the Xbox Play Anywhere is a great new feature as it allows you to play your current Xbox games with higher resolutions and better graphics without forking out extra cash for another copy. Although available titles are still scarce, but I’m sure it will grow in time.

Kathy Cassidy

STYLISTIC Q702

First impression on unpacking the Q702 test unit was the solid feel and clean, minimalist styling.

Anthony Grifoni

STYLISTIC Q572

For work use, Microsoft Word and Excel programs pre-installed on the device are adequate for preparing short documents.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?