Difference in artifactId and name in maven POM

I am new to maven and am confused by the difference between artifactId and name .

I know that artifactId is the name of the artifact you are creating. I know that artifactId along with groupId used to uniquely identify an artifact. So what is a <name> target in POM. for example, lower than what I got from the site, there is artifactId and at the same time a <name> .

 <groupId>org.sonatype.mavenbook.multi</groupId> <artifactId>simple-parent</artifactId> <packaging>pom</packaging> <version>1.0</version> <name>Multi Chapter Simple Parent Project</name> 
+13
java maven apache
source share
2 answers

You are correct that artifactId helps to identify the project.

name is just a human friendly name. This is not required for basic setup.

From the Maven documentation ,

artifactId : ArtifactId is usually the name known to the project. Although groupId is important, people in the group rarely mention groupId in the discussion ... He and groupId create a key that separates this project from any other project in the world (at least it should :)). Along with groupId, artifactId fully defines artifact living spaces in the repository.

+10
source share

groupId , artifactId and version form a composite unique identifier (or coordinate ) for this project. Each of these values ​​has a fairly strict naming convention that allows well-organized groups, artifacts, and versions.

name is just a readable name for the project, and it does not have to be unique or conform to the same conventions (therefore, it may contain spaces and other characters).

+6
source share

All Articles