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.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags open sourceapplicationsProduct lifecycle managementApache FoundationMavensoftwareapacheproject 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

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Matthew Stivala

HP OfficeJet 250 Mobile Printer

The HP OfficeJet 250 Mobile Printer is a great device that fits perfectly into my fast paced and mobile lifestyle. My first impression of the printer itself was how incredibly compact and sleek the device was.

Armand Abogado

HP OfficeJet 250 Mobile Printer

Wireless printing from my iPhone was also a handy feature, the whole experience was quick and seamless with no setup requirements - accessed through the default iOS printing menu options.

Azadeh Williams

HP OfficeJet Pro 8730

A smarter way to print for busy small business owners, combining speedy printing with scanning and copying, making it easier to produce high quality documents and images at a touch of a button.

Andrew Grant

HP OfficeJet Pro 8730

I've had a multifunction printer in the office going on 10 years now. It was a neat bit of kit back in the day -- print, copy, scan, fax -- when printing over WiFi felt a bit like magic. It’s seen better days though and an upgrade’s well overdue. This HP OfficeJet Pro 8730 looks like it ticks all the same boxes: print, copy, scan, and fax. (Really? Does anyone fax anything any more? I guess it's good to know the facility’s there, just in case.) Printing over WiFi is more-or- less standard these days.

Ed Dawson

HP OfficeJet Pro 8730

As a freelance writer who is always on the go, I like my technology to be both efficient and effective so I can do my job well. The HP OfficeJet Pro 8730 Inkjet Printer ticks all the boxes in terms of form factor, performance and user interface.

Michael Hargreaves

Windows 10 for Business / Dell XPS 13

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.

Featured Content

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?