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 […]
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. In this tutorial we will see another example, this time we will create web application […]
In this tutorial we will have a look at the Dependency Management in Maven. 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 […]
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 […]
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 […]
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.
In this post we will see a simple method to put a Java null pointer check in place with minimal effort. NullPointerException unarguably is the worst nightmare for a Java developer. You can see this exception on even some of the reputed sites on the internet. Basically you get this exception when you are trying […]