> But yes, documentation about this could be much better. But as someone
> very correctly pointed out, there is very likely is a reason for the
> lack of this. It's all open source and contributions are gladly
> accepted. Even the Sonatype's book are open source (well, "Creative
> Commons Attribution, Non-Commercial, No Derivative Works 3.0 United
> States license"). If you have suggestions, additions, or whatever,
> file an enhancement ticket and it will be appreciated and most likely
> added. Some people do this, but there is always more that can be done
> and we can all participate.
> 
> /Anders

One of the reasons why I think no one has stepped up, or the community at large 
hasn't stepped up, to create good Maven documentation about its conventions is 
because it is a extremely daunting task.  And I have been thinking about why.

Part of the reason, I believe, is because those "conventions" are not carved in 
stone.  There often isn't a hard and fast convention that says when to make a 
profile or when to make a module or when to use a classifier to store a second 
artifact alongside the primary. When I see a question asked here on this list, 
often the reply to that question is "what are you trying to do?  Why are you 
asking this question you are asking?"

There are general motherhood statements you can make about Maven's conventions. 
 For example, a statement like "Maven is designed for build portability. Use 
caution when creating a profile as this can make your build non-portable." The 
best way to explain how, from here, is by example.  And you'll never be able to 
capture all scenarios which explain when to create a profile and how to go 
about doing it. It is too situational.

The fact that the conventions are not carved in stone, and is a daunting task 
to document, I think is GOOD. It has created an ecosystem which does not become 
stagnant, but instead thrives off the ideas of the community.  What can or 
cannot be done using Maven is constantly changing and the answer differs 
depending on who you ask.

I almost think a better mantra for maven is "philosophy over configuration" 
instead of "convention over configuration".

To be honest, I actually never did have trouble first getting into Maven. In 
fact, I found it quite refreshing. What got me in the right mind set was this:

http://maven.apache.org/what-is-maven.html

Then, what solidified it for me was understanding the lifecycle by digesting 
this here:

http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html

So my recommendation to anyone trying maven for the first time is to read the 
"what is maven" link.  Then think about it, come back, and read it again.  You 
need to get out of the mind set of whatever build tool you were using because 
when you move to maven, you are getting much more than just a build tool.

In all honesty, I don't think we will ever have that one document which 
explains what all of Maven's convention's are. Now, don't get me wrong. This 
doesn't mean we shouldn't aim for having that, as there is a lot of room for 
improved documentation. But I also think we need to set our expectations about 
what is reasonable to achieve.

Todd

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to