maven build profiles

Maven build profiles Maven build profiles provides the facility to build project using different configurations. Instead of creating two separate POM files, we can just specify a profile with the different build configuration and build the project with this build profile when needed. The profiles element is used to specify the maven build profiles inside … Read more

Maven site lifecycle phases

Maven site lifecycle handles everything related to generating documentation for your project. Maven site lifecycle phases: pre-site execute processes needed prior to the actual project site generation site generate the project’s site documentation post-site execute processes needed to finalize the site generation, and to prepare for site deployment site-deploy deploy the generated site documentation to … Read more

maven clean lifecycle phases

Maven clean lifecycle handles everything related to removing temporary files from the output directory, including generated source files, compiled classes and previous JAR files etc. Maven clean lifecycle phases: pre-clean execute processes needed prior to the actual project cleaning clean remove all files generated by the previous build post-clean execute processes needed to finalize the … Read more

maven default lifecycle phases

Maven build life cycle is divided into build phases, and the build phases are divided into build goals. Maven default lifecycle handles everything related to compiling and packaging your project. Maven default lifecycle phases: validate validate the project is correct and all necessary information is available. initialize initialize build state, e.g. set properties or create … Read more

Maven Build Life Cycles, Phases and Goals

Maven build life cycle is divided into build phases, and the build phases are divided into build goals. Maven Build Phase: A phase represents a stage in life cycle. The build phases are subdivided into goals. Maven Build Goal: Build goals are the finest steps in the Maven build process which represents a specific task. … Read more

maven pom xml file

POM File: 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. The POM file should be in the project’s root directory. Maven reads … Read more

Maven Core Concepts

Maven is based on the concept of project object model (POM) file. POM is an XML file which contains project resources like source code, test code and dependencies (external JARs) etc. The POM file should be in the project’s root directory. Maven overview diagram: Maven reads the pom.xml file. Downloads dependencies into local repository. Execute … Read more

Maven architecture

Maven: Apache maven is an advanced project management tool for java software projects which is based on POM (project object model). It uses POM (project object model) file to manage project’s build, dependency and documentation. The most powerful futures of maven are to download the project dependency libraries automatically and to create the right project … Read more

install Maven on Mac OS

As we discussed in previous tutorials that Apache maven is Java based project management tool so JDK is the first requirement. Let us discuss step by step maven installation on Mac os. Install maven on Mac: Check Java installation on your machine. Use machine:~ joseph$ java -version command to verify the java installation. Install the … Read more

install Maven on linux ubuntu

As we discussed in previous tutorials that Apache maven is Java based project management tool so JDK is the first requirement. Let us discuss step by step maven installation on linux. Install maven on linux: Check Java installation on your machine. Use $ java -version command to verify the java installation. Install the java software … Read more