+91-9894109618 talksinfoofficial@gmail.com

Maven – External Dependency

How do I use external dependencies? Dependency management is a core feature of Maven. Managing dependencies for a single project is easy. Managing dependencies for multi-module projects and applications that consist of “n” number of modules is also possible. Maven helps a lot in defining,…

Maven – Filter Resources

How do I filter resource files? Our project sometimes need to fill up or filter resource files using maven during the build time. To accomplish this in Maven, put a reference to the property that will contain the value into your resource file using the syntax ${<property…

Maven – Resources

How do I add resources to Maven Project? Resources are not (usually) code. They are not compiled, but are items meant to be bundled within your project or used for various other reasons. Every Java project contains a folder named resources, different type of projects…

Maven – Configuring Plugins

Maven plugins configuration can be done by specifying a <configuration> element where the child elements of the <configuration> element are mapped based on plugin fields. Types of Plugin In Maven, there are 2 types of plugin available, Build plugins will be executed during the build and then, they should be…

Maven – Plugins & MOJO

Collection of many plugins can also be called as “Maven” in simple. As Maven consists of a core engine which provides basic project-processing capabilities and build-process management used to execute the actual build tasks. What is a Maven Plugin? “Maven” is really just a core…

Maven – Package & Install

How do I create a JAR and install it in my local repository? Create a JAR file Creating a JAR file from maven project is simple one step process. A single command makes it possible to package the project as JAR. Navigate to project folder…

Maven – Repository

What is Maven Repository? Maven Repository is defined as storehouse of artifacts and dependencies of various types.  Types of Repository Local repository – A directory on local computer where maven runs, local repository caches remote dependencies (for offline mode purpose) and local builds artifacts that are not yet released…

Maven – Compile Command

You are going to learn about How to compile in Maven using Compiler plugin and all its usage. Following sections will be covered in this article. Sections Compiler Plugin in Maven Goals of Compiler Plugin Different combination of compile command mvn compile mvn test mvn…

Maven – Build Life Cycle

Introduction to the Maven Build Life Cycle Maven is based around the central concept of a build life cycle. Right from compilation to distribution, every phase is well defined in Maven which is termed as build life cycle. For the person building a project, it…

Maven – Intro to POM

What is POM in Maven? A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. In short the pom.xml will have all…