I have this maven multi-project configuration with a parent project and three child projects:
Parent POM:
<...>
<groupId>my.proj</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>1.0</version>
Children POM:
<parent>
<groupId>my.proj</groupId>
<artifactId>parent</artifactId>
<version>1.0</version>
</parent>
<groupId>my.proj.web</groupId>
<artifactId>web</artifactId>
<version>1.0</version>
If I set the children version to 1.0, I get a warning:
version is duplicate of parent version
But that is what I want, because my entire project is version 1.0, it looks natural to me. Why is this not allowed (or discouraged)?
If you don’t specify the version, maven 3 will automatically use the same version as the parent project, you will only have to specify the version in the parent. So the warning is suggesting to remove this redundancy.