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”

Read PDF file in Java using iText

In this post we will read PDF file in Java using iText library.

The Java program will assume there is a PDF file at location c:/temp/test.pdf. Change this path according to your environment.
Continue reading “Read PDF file in Java using iText”

How to fix issues with your eclipse while working on Java 7

If you have recently installed Java 7, chances are that you might be facing errors using the brand new features of Java 7. This is because of Eclipse Java 7 compliance issue of the compiler.

Follow the steps listed below to fix these errors and run programs using new features of Java in eclipse.
Continue reading “How to fix issues with your eclipse while working on Java 7″