Learn free maven tutorials


Learn Maven tutorial

August 28, 2018 ·  1 min read

Learn Maven tutorial This is an index page for maven Tutorial. Maven is a project management tool to automates the build process for Java applications. Maven is based on project object model configuration which contains all the plugins configured in XML file - pom.xml. Following are the different posts about maven tool. Maven Installation and Setup Maven Dependency Example Generate Maven Project from Scratch Maven Commands Tutorials Maven Interview questions Maven Setting....


Understand versions maven plugin basics with examples

August 6, 2018 ·  4 min read

versions-maven-plugin basics Versions Maven Plugin is a plugin in maven project used to update the versions of application/artifact of a project. Each artifact is a single module which has a dependency on other artifacts. Always Latest versions are stable with fixing bugs. This has advantages to check the latest versions of dependencies as well as parent dependencies. Keeping and managing this version is a tedious task for a developer. This plugin automates this manging version of dependencies in an application....


Learn Maven Compiler plugin with examples

July 18, 2018 ·  3 min read

Maven is an opensource apache tool to automate the build process for the Java-based projects. maven-compiler-plugin is a basic plugin that every developer uses to compile the source code of the maven project. By Default, this plugin is not configured and compilation goals will be called as part of the maven lifecycle process without defining it in pom.xml. If you want to do some configurations. add this plugin in pom....


Maven Clirr plugin example : maven3 plugins tutorials

February 3, 2012 ·  2 min read

maven clirr plugin from org.codehaus.mojo:- Maven Clirr plugin is used to give the report of your current project by comparing with another same old project. Basically, if we configured this plugin to your project, it checks your project jar with an older version jar that is configured in pom.xml to compare. This plugin is to compare the source code as well as jar comparisons for incompatible issues to find in the early stage of any module before releasing the module....


maven assembly plugin example with tutorial in maven

January 31, 2012 ·  3 min read

Maven assembly plugin in maven2:- Maven is a project build management tool, it automates the build phase of any java projects.whenever the project is built, it creates single modules with the format of jar or war. so it builds zip your project including configuration files and other XML files into different customized output module types like zipping, jar, war, and other tar.gz formats. As you know maven-war-plugin generates only war files, but in the projects, you need to archive in different formats like zipped formats, in that case, we will use this plugin....


Top 10 Maven Commands tutorial

January 21, 2012 ·  4 min read

Maven is a build automation management tool in java projects. Most of the people working on java related technologies know about the maven usage. I am listing down the list of Maven commands with examples reference which is very helpful for developer. This list can be used by all the Java developers for their daily usage in projects. Please have a look of my previous article maven installation. For the maven installation, the JDK is required....


Issues in configuring settings.xml in maven

December 30, 2011 ·  1 min read

As you know, Maven is a build tool for software java projects. Most of the developers have used maven over ant these days because of maven resolve their dependencies. maven settings configuration It is a settings.xml file used to configure environment specific settings such as repositories(Local and remote repositories) and proxy configuration and server credentials. These settings are specific to the user where Maven is configured. The default location on your machine is ~/....


Maven Interview Questions

December 2, 2011 ·  2 min read

What is Maven?. Why it is used for?   Maven is a Java build tool used for web, mobile and desktop application in the development process and it is declarative in the pom.xml. the configuration file contains all the dependencies and scm source. how to know maven version using the command line use the following code via command line ` mvn --version ` How do you create a war file using maven?...


How to fix java.lang.OutOfMemoryError issue in Maven?

December 1, 2011 ·  2 min read

java.lang.OutOfMemoryError in maven Maven is an automation build project management tool. if the project has lot 10000 java files, when you try to build the project using “maven clean install”, build failed with an error. maven clean install will tries to clean/delete the project and compile the project, and test the project and build the application OutOfMemoryError issues occur either in the compile phase of your project or test phase of your project while building your maven project...


Maven commands

December 1, 2011 ·  1 min read

As we have encountered the usage of maven in java projects, following are the list of maven commands for your reference. Whenever you run maven command with different goals, It tries to download the different dependencies from the different repositories configured in xml file. If mvn install command unable to download dependent artifacts from repositories, then use the following command with proxy settings enabled mvn install -Dhttps.proxyHost="" -Dhttps.proxyPort="" ```**To run the maven by skipping unit and integration tests** mvn clean install -Dmaven....


Build Java project from scratch using Maven

December 1, 2011 ·  4 min read

a maven is a build tool for the java projects. It speeds up the java development build process.maven is one of the Java tools for continuous build integration. Maven has predefined phases or goals. The goals are similar to ant targets. the developer will invoke goals to do their tasks. Please make sure that you download maven from the Apache software and install it. what are the things to consider while making your java projects to implement Maven as the build tool...


Maven dependency example explained

February 3, 2011 ·  2 min read

One of the features of Maven over ant tool is dependencies management for software projects. When you are using maven in your project, you need to define the dependencies in pom.xml, once the dependencies are defined, these will be downloaded into your local machine from repositories. To configure the dependencies, you have to use the dependency plugin which manipulates the artifacts when you are installing with maven So here is sample code snippet for configuring spring-core to your project...


Install and configure maven Tutorials

December 6, 2010 ·  2 min read

Maven is a build tool to automate the build process of java based projects.Java development environment is required for maven installation on any platform. Before installing maven, Please make sure that you installed latest JDK version Install and setup maven on local windows: Download maven software from apache site and extract the files, copy it local drive example D:\java\apache-maven-3.0.3. Before that, you need to set below environment variables on your local box...