我没有放置groupId或artifactId 我有父母pom
<version>0.1-SNAPSHOT</VERSION>
<modules>
<module>ModuleA</module>
<module>ModuleB</module>
</modules>
ModuleA:
<parent>
<version>0.1-SNAPSHOT</version>
</parent>
ModuleB:
<parent>
<version>0.1-SNAPSHOT</version>
</parent>
<modules>
<module>ModuleC</module>
<module>ModuleD</module>
</modules>
<properties>
<something>${project.version}<something>
<properties>
<dependencies>
<dependency>
<version>${something}</version>
</dependency>
</dependencies>
所以问题是,当我做&#34; mvn clean release:prepare2时,它更新了父和ModuleA,但没有更新ModuleB。另外,我得到一个错误,说它需要另一个版本的依赖,而它寻找($ {project.version})而不是(0.1)
****问题已解决:****
我有父母pom
<version>0.1-SNAPSHOT</VERSION>
<modules>
<module>ModuleA</module>
<module>ModuleB</module>
</modules>
<properties>
<something>0.1-SNAPSHOT<something>
<properties>
<dependencyManagement>
<dependencies>
<dependency>
(no version)
</dependency>
</dependencies>
</dependencyManagement>
ModuleA:
<parent>
<version>0.1-SNAPSHOT</version>
</parent>
ModuleB:
<parent>
<version>0.1-SNAPSHOT</version>
</parent>
<modules>
<module>ModuleC</module>
<module>ModuleD</module>
</modules>
<dependencies>
<dependency>
"no version"
</dependency>
</dependencies>