Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个产品需要从一组项目中构建,所以我需要两个父 pom 文件。我知道如何为要使用的 mvn 命令指定一个备用 pom。我在子 pom.xml 中放置什么来告诉它父级有一个非标准名称?
我通过 Eclipse POM 编辑器找到了它:relativePath
<parent> <relativePath>../oda_pom.xml</relativePath> <groupId>xxx</groupId> <artifactId>yyy</artifactId> <version>1.0-SNAPSHOT</version> </parent>