Group id vs Artifact id for a project – User friendly Tech help

Problem:- 
nWhen creating a new project in java IDE, what is the significane of group id and artifact id?
n
nn

nSolution:-
nLets understand what are these values and why we use them.
n
nWhat?
nGroup ID :- Its an value which gives unique name to the project (like primary key in SQL tables).
n
nArtifact ID:- Name of the project (jar file will have the same name, when project is build).
n
nConventions?
nGroup ID :- Like package in java, it follows the reverse domain naming approach.
nConfused ???, lets have a example.
n
nLets say we have domain as www.ufthelp.com than group id will be com.ufthelp(reverse of domain)
nanother example, www.google.ca, will be ca.google.
n
Artifact id:- Its the name of the project (lowercase and longer name seperated by dash).
nExample, selenium2library
n
nNote:- 
nVersion, is the build version of the project, i.e jarname.version example chrome-53.1 (where chrome is the name of thee project, 53.1 is version)
n
nRead more
nLearn Java
nLearn Selenium

Was this article helpful?
YesNo

Similar Posts