找到重复的包执行

Ste*_* S. 5 eclipse m2eclipse maven

我在标签中有一个带有此插件定义的父pom.xmlpluginManagement

<plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
    <version>3.2.0</version>
    <executions>
        <execution>
            <id>default-bundle</id>
            <phase>package</phase>
            <goals>
                <goal>bundle</goal>
            </goals>
        </execution>
        <execution>
            <id>create-source-manifest</id>
            <phase>prepare-package</phase>
            <goals>
                <goal>manifest</goal>
            </goals>
        </execution>
    </executions>
</plugin>
Run Code Online (Sandbox Code Playgroud)

然后,我有实际项目的pom.xml尝试添加执行:

<plugin>
    <groupId>org.apache.felix</groupId>
    <artifactId>maven-bundle-plugin</artifactId>
</plugin>
Run Code Online (Sandbox Code Playgroud)

它导致错误:找到重复的捆绑软件执行。请删除您pom.xml中所有显式定义的包执行。

但是,如果我plugin在Eclipse中删除此标记并再次添加它,该错误将消失。

这是Eclipse M2E问题吗?还是这是一个实际的Maven问题?如果是这样,我该如何解决?我显然不能删除上面的处决。

我可以添加以下内容:

<executions>
    <execution><id>default-bundle</id></execution>
    <execution><id>create-source-manifest</id></execution>
</executions>
Run Code Online (Sandbox Code Playgroud)

但这对于“执行父pom中定义的所有内容”非常冗长,而且如果我想添加另一次执行,则新的执行不会被执行。

注意:请注意,它在M2E 1.12的Eclipse 2019-06中仍然被打破(我写这个问题时不知道我一年多以前拥有哪个Eclipse)。