Types of repository in maven

Maven repositories: Maven repositories are directories of packaged JAR files with extra meta-data. The meta-data is represented by POM files. A repository contains all the project jars, library jar, plugins and any other project specific artifacts. Types of maven repository: Local Repository Central Repository Remote Repository

Goal in maven

Build goals are the finest steps in the Maven build process which represents a specific task. A goal can be bound to none, one or more build phases. If a goal is not bound to any build phase, we can only execute it by passing the goals name to the mvn command.

What information does pom contain?

POM refers to Project Object Model. It is an XML file which contains the information about the project and various configuration detail used by Maven to build the project like build directory, source directory, dependencies, test source directory, plugin, goals etc. Element Description project This is the root element of pom.xml file. modelVersion This is … Read more

Aspects Maven manages

Maven helps to manage the following: Builds Documentation Reporting Dependencies SCMs Releases Distribution  

Build tools in java

A build tool is utility program to automate the process of repetitive tasks like compiling source code and creating files etc. A build tool can be executed from the command line. Note: Apache Ant, Maven and Gradle are the commonly used building tools in java. Why build tools are used? Build tools are used to … Read more

eclipse maven java web project

Eclipse maven java project: Eclipse provides m2eclipse plugin to integrate Maven and Eclipse together. Steps to create maven java web project in eclipse: In eclipse, click on File menu → New → Maven Project. Select maven-archetype-webapp template to create java project and Click on Next button. Now provide the group Id, artifact Id and Package. … Read more

eclipse maven java project example

Eclipse maven java project: Eclipse provides m2eclipse plugin to integrate Maven and Eclipse together. Steps to create maven java project in eclipse: In eclipse, click on File menu → New → Maven Project. Select maven-archetype-quickstart template to create java project and Click on Next button. Now provide the group Id, artifact Id and Package. Click … Read more