Brief of Artifact, Generation of Maven number, Group id, Artifact id, POM.xml file, compile, test, package command

Mvn archetype: generate 

 1740 – For spring project 

1765 – For sample maven project 

1244 – MVC 4 Web application 

2630 — Projects for multiple platforms web 

 What is an Artifact. 

First its compile and deployed then go to testing, it’s a collection of source code Packages. 

Command to generate Maven Number. 

Mvn archetype: generate 

What is group id. 

Group Id This element indicates the unique identifier of the organization or group that created the project. The groupId is one of the key identifiers of a project and is typically based on the fully qualified domain name of your organization. For example, org. Apache, com.facebook, gov.Andhrapradesh. 

What is Artifactid 

ArtifactId is the name of the jar without version. If you created it, then you can choose whatever name you want with lowercase letters and no strange symbols. If it’s a third-party jar, you have to take the name of the jar as it’s distributed. 

Observation of project structure 

Understanding POM.xml file 

A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project. … Other information such as the project version, description, developers, mailing lists and such can also be specified. 

Mvn compile command 

mvn compile: Compiles source code of the project

Mvn test command 

mvn test-compile: Compiles the test source code. 

Mvn Package command 

mvn package: Creates JAR or WAR file for the project to convert it into a distributable format. 

Leave a Comment

MFH DevOps Consultation Services

Add Few lines about the company here

Contact

MFH Devops Consulation
#4-72-1/1. 1st Floor, Beach Road Lawson’s Bay Colony, Near Shanti Ashram, Opp. Bharat Petroleum, Visakhapatnam, Andhra Pradesh – 530017