How to select the jar package version for Maven package when the jar package versions referenced by multiple modules are inconsistent

problem description:

as shown in figure:

such a project project, where view edaily-service and edaily-web reference jar version is inconsistent. Take the spring version for example: web is 4.3.29
and service is 4.0.9:

. So when maven USES war, does it use 4.0.9 jar or 4.3.29 jar?


is based on the version referred to by the maven-compiler-plugin POM file:


maven-compiler-plugin is in edaily-web, so it is packaged as version 4.3.29.

Read More: