Create a fat Jar file – Maven Assembly Plugin
In this tutorial, we will show you how to create a fat/uber jar with Maven Assembly Plugin. Which means create a Jar together with its dependency Jars into a single…
Favourite tutorials for developers
Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible. It is a general-purpose programming language intended to let programmers write once, run anywhere (WORA), meaning that compiled Java code can run on all platforms that support Java without the need to recompile.
In this tutorial, we will show you how to create a fat/uber jar with Maven Assembly Plugin. Which means create a Jar together with its dependency Jars into a single…
Learn how to use JAR tool: 1 - Create a jar file, 2 - Update a jar file , 3 - Extract a jar file , 4 - List files…
In Java, you can use manifest file to define application’s entry point, adding classpath or package version for a JAR file. In this short tutorial , we will show you…
In this tutorial, we will show you how to use Maven build tool, One-JAR plugin to create a single Jar together with its dependency Jars into a single executable Jar…
This example shows you how to use Maven to exclude the log4j.properties file from your Jar file. Please, DO NOT include the log4j.properties into the final Jar file, it will…
In this tutorial, we will show you how to create a executable JAR – When you double click on it, it runs the defined main class in manifest file.
Is there a function in Java to retrieve the Tomcat (Catalina) home directory? Yes, Tomcat home directory or Catalina directory is stored at the Java System Property environment. If the…
In this tutorial, we will show you how to use Maven-Tomcat plugin to package and deploy a WAR file to Tomcat, both in Tomcat 6 and 7. Libraries used :Maven…
By default, Spring Boot use Tomcat as the default embedded server, to change it to Jetty, just exclude Tomcat and include Jetty in pom.xml . From the dependency: spring-boot-starter-web, we…
In Spring Boot, by default, the context path is “/”. To change the context path, we need to update server.contextPath properties. The following examples update the context path from /…