是否可以为每个maven子项目使用相同的.target文件?如何在Tycho中使用相同的目标平台多个子项目
从父.pom文件片段
<groupId>root.server</groupId>
<artifactId>root.server</artifactId>
段从孩子.pom文件
<groupId>child.project</groupId>
<artifactId>child.project.parent</artifactId>
<target>
<artifact>
<groupId>root.server</groupId>
<artifactId>root.server</artifactId>
<version>${project.version}</version>
<classifier>targetfile</classifier>
</artifact>
</target>
当我尝试了“MVN全新安装”中的子项目我得到一个异常:Could not resolve target platform specification artifact
。当我在子项目的父项中尝试“mvn clean install”时,一切正常。
有没有办法为所有项目(父+子项目)重用一个.target文件?
在更常见的设置中也会出现同样的问题:目标文件和相应的目标平台配置都在父项目中 - >如果仅构建子级,则构建失败。 – oberlies