Apache Maven now backs parallelism

Version 3.0 of the Java software build system gets critical backing for multicore processors, boosting performance

The Apache Software Foundation on Wednesday is officially announcing its open source Maven 3.0 software build system for Java projects, which supports multicore processors.

In development for two years, Maven 3 is faster, more reliable, and more extensible than Maven 2, according to Apache. Users have reported improvements in build time of 10 to 40 percent. Perhaps the biggest feature in version 3.0 is a parallel build capability.

[ Sonatype this week enhanced its Maven Central cloud-based software component repository. | Track the latest trends in open source with InfoWorld's Open Sources blog and Technology: Open Source newsletter. ]

"That allows developers to take care of multicore processors now," said Jason van Zyl creator of Maven and CTO at Sonatype. Cores can be used in parallel to speed up build times, van Zyl said.

Maven, van Zyl said, is used by estimated 3 to 4 million Java developers and offers patterns and blueprints for building software. "You can think of it as being analogous to Java EE (Enterprise Edition)," he said.

Version 3.0 moves Maven toward a path to OSGi modularization via true plugin classpath isolation. "[An OSGi ] model would allow plug-ins to be developed safely [without any conflicts at runtime]," said van Zyl.

The regression test suite in version 3.0 has been improved for the Maven core and plug-ins.

Other features of version 3.0 include replacing the Plexus dependency injection framework with the standard Google Guice framework. With dependency injection, developers can build alternative implementations of subsystems in Maven, for extensions or customizations.

An improved Project Object Model (POM) in Maven 3.0 makes reporting of errors easier. Also, the release improves handling of local repository data to prevent errors. Maven depends on having a local copy of all artifacts for a build, van Zyl said.

Maven 3.0 is backward-compatible with Maven 2, Apache said. Officially released on October 8, Maven is accessible at the Apache website.

This article, "Apache Maven now backs parallelism," was originally published at InfoWorld.com. Follow the latest developments in business technology news and get a digest of the key stories each day in the InfoWorld Daily newsletter.

Copyright © 2010 IDG Communications, Inc.

How to choose a low-code development platform