Introduction In this tutorial I will tell you how to create executable jar using gradle or maven build tool in Spring Boot application. Generally maven or gradle tool is used in Java applications to automate the build process. I will also see how to control the target jar name with version appended into it. Spring Boot provides lots of benefits and one of the benefits is that you can make an executable jar out of web application.
ContinueTag: Maven Jar
Prevent JAR Creation using Maven
Introduction In this post you will see how to prevent JAR creation using maven build tool if your application does not have the required Java classes or resource files. I will use maven-jar-plugin which is used by default by maven build tool to create a JAR file. For example, you will not basically let your maven tool to create a JAR file or you don’t want to create JAR file for your application when your application doesn’t have any resources and in this case you want to prevent your build…
ContinueCreating Multiple Executable Jars using Maven
Introduction You will see in this post how to create multiple executable jars using maven build tool. You have seen how to create executable jar using maven build tool. I had created only single executable jar file in previous example but here I will create multiple jars.
ContinueRemoving 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.
ContinuePackaging WAR, JAR modules into EAR using Maven Build Tool
Introduction Here we 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. WAR, JAR and EAR EJB modules which contain enterprise java beans (class files) and EJB deployment descriptor are packed as JAR files with .jar extenstion. Web modules which contain Servlet class files, JSP Files, supporting files, GIF and HTML files are packaged as JAR file with .war…
ContinueHow to create executable jar using maven
Introduction Here I am going to show you how to create executable jar using maven build tool. Sometimes you need to create executable jar file from a standalone application using maven because you want to put the executable jar file anywhere and just want to run the file to do some operations from command line.
ContinueDeploy both war and jar files into Nexus using maven in Jenkins
Introduction This tutorial will show you how to deploy both war and jar file from an web application using maven in Jenkins. By default when we build the web project in Jenkins then the war file gets uploaded into nexus repository but not the jar file. Sometimes we need to upload both war and jar files for an web application using maven, because, the standalone project may need to include the jar file of the web application and another web project may need to include the war file of the…
ContinueCreate both war and jar files using maven
Introduction This tutorial will show you how to create both war and jar file in an web application using maven. Sometimes we need to create both war and jar files for an web application using maven because some other standalone project needs to include the jar file for this web application. For example you can create war and jar files from Spring Boot applications.
Continue