Essential maven plugins – plugins for every developer

I already mentioned earlier, maven is just a framework of plugins. This article talks about the essential maven plugins, handy for every developer. There are Maven plugins for almost every task. Make sure you have read my previous article on Maven plugins in-depth. In Effective Pom, I showed you that by default there are several maven plugins that get inherited [Read More]

By |2019-10-21T15:53:54+00:00October 21st, 2019|Categories: Java™, Maven|Tags: , , , |

Advanced Maven Tutorial

Maven Tutorial - A complete tutorial with code examples. This tutorial is an advanced maven tutorial meant to make you a Hero in Apache maven. Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project’s build, reporting, and documentation from a central piece of information. [Read More]

By |2019-10-21T15:58:52+00:00August 25th, 2019|Categories: Maven|Tags: , , , |

mvn site : java.lang.NoClassDefFoundError: org/apache/maven/doxia/siterenderer/DocumentContent

Problem: mvn site : java.lang.NoClassDefFoundError I created a simple Spark App for Maven tutorial. To create documentation, I used mvn site But it failed and ended up getting the following error. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building spark-api-example 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-site-plugin:3.3:site (default-cli) @ spark-api-example --- [WARNING] Report plugin org.apache.maven.plugins:maven-project-info-reports-plugin has an empty version. [Read More]

By |2019-08-03T04:08:26+00:00August 2nd, 2019|Categories: Maven|

Maven plugins in-depth

Maven at its core is a plugin execution framework. All work is done by plugins. Looking for a specific goal to execute? This page lists the core plugins and others. In this section, you will learn what are maven plugins, how to use and configure them.

By |2019-08-01T03:52:30+00:00July 31st, 2019|Categories: Java™, Maven|Tags: |

Create a spark API application in Maven

You will learn to create a simple spark API in maven. Spark - A micro-framework for creating web applications in Kotlin and Java 8 with minimal effort. Make sure maven is installed by running mvn --version in the terminal/command prompt. I will build a website registry app, which stores websites information in a HashMap (in-memory database). This is an example [Read More]

By |2019-07-31T17:47:15+00:00July 28th, 2019|Categories: Java™, Maven|Tags: |

Maven core concepts – repositories, dependency management & scopes

You have just tried creating a simple project in maven, you will now learn the maven core concepts. As you have seen in the previous page, pom.xml is the heart and soul of a maven project. Pom.xml - project object model file has all the information about a given project. 1. Maven repositories When you run maven generate, mvn compile [Read More]

By |2019-07-27T03:15:31+00:00July 26th, 2019|Categories: Java™, Maven|

Create a simple maven project

The most important part of a maven-project is its project object model - pom.xml. As discussed in the introduction, maven follows conventions over configurations. Therefore, we need to follow a standard for project folder structure. We will now understand maven by creating a simple maven project, but before that let us understand a few basic concepts. Every project is uniquely [Read More]

By |2019-07-27T18:24:07+00:00July 26th, 2019|Categories: Java™, Maven|

Apache Maven installations

Apache maven installation is really simple. You just need to make sure that JDK is installed and JAVA_HOME is configured correctly. All you do is unzip the maven zip/tar file and add apache-maven-3.6.1/bin to PATH. Prerequisite Make sure JDK is installed in your system by running java -version in the terminal or command prompt.If JDK is not installed yet, download [Read More]

By |2019-07-26T14:54:14+00:00July 26th, 2019|Categories: Java™, Maven|
Go to Top