Building Project using Plugins, Lifecycle in Maven (Part-3)
How can we build a project in Maven? It can be done either by executing maven plugins or maven life cycle phases or a combination of both maven plugins and maven life cycle. Maven Plugin ( available at http://repo.maven.apache.org/maven2/org/apache/maven/plugins/ ) All the work in Maven is performed by plugins. Be it Project creation using archetype(refer post1 ), project packaging, project build etc., Maven created plugins that can carry out these tasks. Below are the list of tasks for which the maven plugins are already available. Build Activities: clean, deploy etc., Test activities : compiling and running test cases, code coverage, etc., Web Applications : Deploying and running web applications Reporting tasks : changelog, javadoc, project reports etc., How to use a plugin? A plugin usage is very simple. By executing the below command(for eg.) in project root folder, we can compile all the sources(ma...