Introduction to Maven Plugins

In this particular post in the series of tutorials for Maven, we will have a quick Introduction to Maven Plugins and see some of the commonly used plugins

Maven can be described as a plugin execution framework. Maven by itself does not offer a lot of functionality. It will basically pass on all the responsibilities to plugins which are designed to achieve specific goals. In a way, plugins extend the functionality provided by Maven.
Continue reading “Introduction to Maven Plugins”

Create Web Application using Maven

In the previous tutorials we went through the basics of Maven, saw how to set it up and created a basic Java application. We also saw how to run different phases of build lifecycle like compile, package etc using Maven.

Around The World Flights - Promo Code WORLD15

In this tutorial we will see another example, this time we will create web application using Maven. In the subsequent tutorial we will have a look at Maven plugins, and also describe an example by using Tomcat plugin.
Continue reading “Create Web Application using Maven”

Dependency Management in Maven

In this tutorial we will have a look at the Dependency Management in Maven.

Around The World Flights - Promo Code WORLD15

Java based projects most often make use of external libraries in the form of jar files. Some of the commonly used libraries are Struts, Hibernate, Spring and so on. For a problem free build and deployment of the Java project, it is essential to have these libraries available during compile time, and also appropriately packaged into the deploy-able archive. The versions of these libraries is also an important consideration for a successful build.
Continue reading “Dependency Management in Maven”

Maven phases

In the previous tutorial, we used the compile and package keywords. These are called as phases. The build Maven phases are covered in greater details in this tutorial.

Maven is based on central concept of the build lifecycle. A typical build lifecycle will have phases like compile, test, package etc. Maven analogously, has corresponding commands for each of the phase to take care of the activities in that phase.
Continue reading “Maven phases”

Compiling your Maven Project

In this tutorial we will see in detail how to compile your Maven project. We will be using the sample project that we created in our previous tutorial, however you can run most of the commands listed in this tutorial on any Maven based projects (If case you want to use your own project, just make sure that you refer to the appropriate directories in your project instead of the ones mentioned in this tutorial).
Continue reading “Compiling your Maven Project”

Create your First Project with Maven

In the previous tutorial we saw how to download and install Maven. In this tutorial, we will see how to create your first project with Maven. If you don’t have Maven downloaded and installed yet please follow this link.

We will be creating a simple Java project with main() function. Lets get started.
Continue reading “Create your First Project with Maven”

Setting up Maven

In this tutorial, we will see in detail how to setup Apache Maven
Continue reading “Setting up Maven”

Quick Start Guide to Maven

In this series of tutorials, we will take a detailed look at the Apache Maven tool. In this particular post we will go through some introductory concepts related to Maven. So lets get started with the Quick Start Guide to Maven.

Quick start guide to Maven

Maven logo

Continue reading “Quick Start Guide to Maven”

Write PDF file in Java using iText

In this tutorial we will see how to write PDF file in Java using iText library.

Review the code listed below. Running this program will generate a PDF file at location c:/itext.pdf. You can change the location in the program to suit your platform:
Continue reading “Write PDF file in Java using iText”

PDF Generation in Java: iText Tutorial

iText is a free and open source PDF library (License Type: AGPL) for Java. It is unarguably the best and most efficient PDF library currently available for Java.

Adding PDF support to your application for functionalities like reporting can be an excellent idea given that PDF is a well accepted format and easy to share. Besides, PDF files also look good as compared to other formats.
Continue reading “PDF Generation in Java: iText Tutorial”