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 IT Solutions (Regd No -LIN : AP-03-46-003-03147775)

Consultation & project support organization.

Contact

MFH IT Solutions (Regd)
NAD Kotha Road, Opp Bashyam School, Butchurajupalem, Jaya Prakash Nagar Visakhapatnam, Andhra Pradesh – 530027