Packaging 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…

Continue

Deploy 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…

Continue

Create 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