It depends on how you customize your build. If you have a properly configured parent pom, basic information like version and groupid can be shared between your projects.
You can define general project configuration information that should be used in all project modules. For instance:
<modelVersion>4.0.0</modelVersion> <groupId>groupd.id</groupId> <artifactId>artifact.id</artifactId> <packaging>pom</packaging> <version>version</version>
However, you do not duplicate this information in module projects. The same information can be referenced as follows:
<parent> <groupId>group.id</groupId> <artifactId>artifact.id</artifactId> <version>version</version> </parent>
Remember that the parent pom can be used to share additional information than above. You can perform dependency management, manage plugins, and even define reusable profiles.
user626607
source share