What percentage of the Java world does Maven use?

I am creating a tutorial for a Java library. There's a very easy way to get started with Maven + Eclipse, but I'm not sure that most of the people who follow this guide will have Maven setup. So, I'm curious, what percentage of the Java world does Maven use to manage its projects?

+6
java maven
source share
4 answers

If your library is not Maven-oriented, I would prefer a tutorial for building and an additional application that can explain the use of your library in certain environments (Eclipse, Netbeans, Ant, Maven, ...).

+11
source share

Check out this other SO question with tons of details. Personally, I like maven, which helps me get started with any project almost immediately with minimal fuss. In addition, maven had plugins to work with the entire IDE and simplify life.

+9
source share

Yes, the documentation is not the best. However, maven is a life saver when trying to manage a medium to large-scale project. Due to this fact of my life, adding an open source library that is not located on maven is a pain.

The advantage of maven is not only the automatic loading of dependencies, but also imposes a standard directory structure, which means that I can script to use any library used, internal or open.

Biggest Maven Cons:

  • very verbose command line. Documentation
  • is mysterious and scattered.
  • no universal help

However, my solution to many of these problems is to use a custom ant build.xml file with my standard mvn targets defined as simpler ant targets (which also allows me to add help text to my own.)

Update:

I really have to say that the documentation is mysterious. Most of my experience with a typical maven developer on documentation is typical of this exchange:

Me: "I do not understand how to do this, and the code behaves very badly."

Them: "The suggested way to resolve this is to load the DTD into the question and use the catalog recognizer. See the" catalogs "property at http://mojo.codehaus.org/xml-maven-plugin/validation.html " (Their suggestion includes several pages with more than one complete example)

Me: Amazing. RTFM This will make this plugin more useful for users who do not have time to decrypt the manual if a good example has been provided for this very common usecase.

They: I'm sorry, but I can not follow you. The "directory properties" documentation (see Link above) clearly shows how to configure the use of the directory file.

Me: As my friend, a smart guy who works on google, he said the following: "Yes, the documentation says exactly how to do it, if you know how to do it."

+4
source share

I see many different (corporate) Java systems, and up to half of the systems use Maven. So, I would say that you can definitely use Maven in this example, as this is a fairly common approach. Just make sure you provide the link to download the jar file. People using Ant or other build tools will know how to work with this.

+3
source share

All Articles