Welcome to mavenbook.org
This is the website for the Maven: A Developer's Notebook book. You'll be able to download the book source code, read tips about Maven 1.x and 2.x, find out Maven resources and more.News and Tips
28 April 2006
Maven2 book is released
17 January 2006
Maven 2 Book
I'm happy to announce that a Maven 2 book is being written. It'll be a new book published by Mergere. The current writer team is composed of Maven veterans. By alphabetical order: John D. Casey, Vincent Massol, Brett Porter, Carlos Sanchez, Jason Van Zyl and other contributors.
The book will be made available online for free to the community. The target date for publication … continue
28 November 2005
M2 Tip #3: Debugging a Maven2 pom.xml
When you have several layers of inheritance, including different settings.xml and such it is really hard to find out what's wrong. Fortunately there's a way to see your
pom.xml as it is resolved by Maven2!
… continue
06 November 2005
M1 Tip#13: Running Maven in English
If you're like me and you have an OS running in a non-English locale but you still Maven to run in English then here's a tip for you (tip gleaned from Emmanuel Venisse).
… continue
04 November 2005
M1 Tip#12: Be Maven 2 Friendly
When you deploy a Maven 1 artifact to a remote Maven 1 repository you are also deploying your project's POM (
project.xml).
If you're deploying to a Maven 1 repository that is synced with ibiblio your project.xml will find its way on the ibiblio Maven 1 repository where it'll automatically converted into a Maven 2 pom.xml file that will be put into the ibilio Maven 2 repository.
… continue
26 October 2005
Javapolis 2005
Vincent will present Maven 2.0 at Javapolis 2005 on the 15th of December, at 17:00 in Room 1. Come and join us!
JavaZone 2005: From Maven 1 to Maven 2
08 September 2005
Building J2EE projects with Maven
In complement to Maven: A Developer's Notebook we are pleased to offer you an article on building J2EE projects with Maven. We thought that it was an area that we didn't fully cover in the book for lack of space. Thus we've decided to publish this article as … continue
01 September 2005
General tip: Finding the version of a JAR
when you're converting an existing Ant project to Maven, one of the first tedious task is to find out the version of the jars that you had been using. Of course you can try to open the JAR and look for the Manifest file but alas in most cases the version is not filled…
… continue
27 August 2005
General tip: Depending on J2EE
If you're building a J2EE application you'll need to add a dependency on the J2EE JAR in your POM. You have probably noticed that the Sun J2EE JAR is not available on ibiblio. This is due to licensing restrictions.
… continue
13 August 2005
M1 Tip#11: Customize project's version for nightbuilds
It might be useful to customize a project's current version in certain circumstances. For instance, a continuous integration tool can build a NIGHTBUILD-SNAPSHOT of your project. While the deploy-snapshot achieves this goal, it does not allow external teams to depend on the project, especially if multiple versions are used. In this case, you might have different instances with 1.3-NIGHTBUILD-SNAPSHOT, 2.0-NIGHTBUILD-SNAPSHOT, etc.
… continue
12 August 2005
M1 Tip#10: Discover plugin releases
There's a useful plugin in Maven 1 called the Multichanges plugin. It's meant to be used un a multiproject scenario and it will create a report listing the latest releases of all plugins. It uses the
changes.xml files to discover this information.
Thus … continue
07 August 2005
M2 Tip#2: Using Pojo to configure Mojo
It is possible to use Plain Old Java Objects (POJOs) to configure a maven 2 plugin. POJOs of different types could even be used, provided they share the same base class or interface. Note that your POJOs need to be located in the same package as the Mojo to configure and should have a default public constructor.
… continue
JavaZone 2005
The JavaZone 2005 conference is scheduled on the 14th and 15th of September 2005. Vincent Massol will be presenting From Maven 1.0 to Maven 2.0 and Jason Van Zyl will be presenting Maven 2.0. Lots of good advertising for Maven 2.0!
06 August 2005
M1 Tip#9: Catch build failure
Sometime you want to execute some Jelly script or call some goal and you don't want the build to stop in case of a failure. For example you might want to call some specific goal even if another goal that you call fails.
… continue
M1 Tip#8: Dynamic Property
It's possible to have dynamic properties in Maven. A dynamic property is a property whose name is computed.
… continue
01 August 2005
M2 Tip#1: Passing any XML to Mojos
It is possible to pass an arbitrary XML configuration snippet to a m2 mojo by using the following:
… continue
31 July 2005
M1 Tip #7: Referencing tools.jar
If you're writing a plugin you may have the need to add the tools.jar file to some classpath. You can't add a dependency in your plugin's POM as this Sun JAR cannot be redistributed by Maven on ibiblio.
… continue
Maven 1.x plugin releases
Here are the latest Maven 1.x plugin releases (latest first):
- Artifact 1.6 (Maven 1.1 only)
- Developer Activity 1.5.2
07 July 2005
M1 Tip #6: Jelly and Numbers
Adding two numbers in Jelly is straightforward:
Remember that expression between curly braces is akin to a Java expression and thus
… continue
<j:set var="result" value="${value1 + value2}"/>
value1 and value2 must be numbers.… continue
