Removing Default Jar created by Maven Build

Introduction Here you will see an example on how to remove default jar by maven build tool. Generally this may be required in a situation where you are generating executable jar or executable jars and your application does not require additional non-executable jar generated by maven build. Then you can remove such jar from the target folder.

Packaging WAR, JAR modules into EAR using Maven Build Tool

Introduction Here you will see the process of packaging WAR, JAR modules into EAR file. EAR, also known as, Enterprise Archive, in which all files (.jar and .war) are packaged as JAR file with .ear (enterprise archive) extension and deployed into Application Server.

How to encrypt User Passwords in Maven ~/.m2/settings.xml File

Introduction Here I will show you how to encrypt user passwords in maven’s ~/.m2/settings.xml file. The user here is the person who is going to access the remote maven’s protected repository. The maven’s configuration or setting file, settings.xml , which contains all the required configurations such as repository, server etc will be updated here. Problem Let’s say, when you as…

Creating Kotlin Project in Eclipse

In this tutorial I will show you how to create Kotlin project in Eclipse. This example shows you how to create Kotlin gradle project or Kotlin maven project. Kotlin is statically typed programming language for modern multiplatform applications. Kotlin has 100% compatibility with Java or vice-versa. Salient Features of Kotlin Drastically reduces the amount of boilerplate code. Avoids entire classes…

Generating stubs from multiple WSDL files using Maven or Gradle

Introduction In this post we will see an example on generating stubs from multiple QSDL files using Maven or Gradle plugin. Let’s say, you are given a WSDL file and you want to generate Java class from it, then you need to do some configurations in your maven or gradle project to automate the activities. You can also generate using…

Creating Multi-Modules Maven Project in Eclipse

Introduction In this tutorial I will explain you how to create multi-modules maven project in Eclipse. This kind of project is a good design when you want to group similar applications or projects and reduce the duplication in code. A multi-module project is built from a parent pom that manages a group of submodules. In most cases, the parent pom…

Setup Mule, Maven and JDK in Windows

I will show you how to setup Mule, Maven and JDK in Windows environment. Prerequisites Mule Studio 3.x(Anypoint Studio) (Download from https://www.mulesoft.com/platform/studio) Maven 3.2.1 (Download from https://maven.apache.org/download.cgi?Preferred=ftp://mirror.reverse.net/pub/apache/) JDK 1.7 (Download from http://www.oracle.com/technetwork/java/javase/downloads/index.html)

Maven setup

This tutorial will show you how to setup Apache Maven in development environment. Prerequisites Maven is a Java tool, so you must have Java installed in order to proceed. Maven 3.3 requires JDK 1.7 or above to execute. So first install Java 1.7 and setup environment path for Java.

Spring Web MVC

This tutorial will show you how we configure Spring MVC, maven and Tomcat 7. For this tutorial we will create maven based web project in Eclipse. If you already have an idea on how to create a maven project in Eclipse will be great otherwise I will tell you here how to create a maven project in Eclipse.

Contract First SOAP Web Service

Introduction This tutorial will show you how we can create and publish SOAP based webservice in Contract-first approach using Apache cxf, Spring and Maven. There are mainly two approaches to create the Webservice – Contract-first & Contract-last. The Contract-first approach tells us to create first WSDL and then create end-point interface and implementation class. The Contract-last approach tells us to…