Solved

convention vs configuration---maven

Posted on 2013-11-20
1
395 Views
Last Modified: 2013-11-25
Hi,

I was reading about Maven. Author says 'Maven uses convention over configuration'.

'Developers can build any given Maven project without need to understand how the individual plugins work. '
I have not understood clearly what it means. Is it not same with ANT builds as well.

please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 36

Accepted Solution

by:
mccarl earned 500 total points
ID: 39664531
convention over configuration
Basically just means that as far as possible, some sane default values have been chosen for plugin parameters. So for example, you don't need to tell the maven-compiler-plugin that your Java source files are in  "src/main/java". It is the default, and it is a well known default, so that you (or a tool) can just create those directories and place .java files within, and the build process will just work.

That is what the tag line is all about... "convention" ie. look in src/main/java, over "configuration" ie. rather than having to explicitly say that my source files are in src/main/java.

Note, that this doesn't mean that you can't configure the build process with different parameters, ie. you can put your source files elsewhere and configure the compiler to match.

The difference with Ant is that it's build file will explicitly state a lot (most) of the required parameters. Note though, that you probably don't see much of a difference if you are using some other tools on top of these, such as a modern IDE like Eclipse. It will hide a lot of the configuration, even for an Ant build.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
A solution for Fortify Path Manipulation.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses

628 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question