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

group id intellij


Solution:-
Lets understand what are these values and why we use them.

What?
Group ID :- Its an value which gives unique name to the project (like primary key in SQL tables).

Artifact ID:- Name of the project (jar file will have the same name, when project is build).

Conventions?
Group ID :- Like package in java, it follows the reverse domain naming approach.
Confused ???, lets have a example.

Lets say we have domain as www.ufthelp.com than group id will be com.ufthelp(reverse of domain)
another example, www.google.ca, will be ca.google.

Artifact id:- Its the name of the project (lowercase and longer name seperated by dash).
Example, selenium2library

Note:- 
Version, 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)

Read more
Learn Java
Learn Selenium

Leave a Reply

Your email address will not be published. Required fields are marked *