我使用 eclipse 并在我的 pom.xml 中包含以下依赖项:
<dependency>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.0.7</version>
</dependency>
使用此插件时:
<build>
<plugins>
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.0.7</version>
<executions>
<execution>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
...
</build>
我在 eclipse ide 中遇到这个错误:
Plugin execution not covered by lifecycle configuration:
org.jboss.jandex:jandex-maven-plugin:1.0.7:jandex
(execution: make-index, phase: process-classes)
单击“发现新的 m2 连接器” 时,出现错误:
No marketplace entries found to handle jandex-maven-plugin:1.0.7:jandex in Eclipse.
Please see Help for more information.
我该如何解决这个问题?
解决方案:
已添加 <?m2e ignore?>
在 pom.xml 中:
<!-- https://www.eclipse.org/m2e/documentation/release-notes-17.html#new-syntax-for-specifying-lifecycle-mapping-metadata -->
<plugin>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version><dependency>
<groupId>org.jboss.jandex</groupId>
<artifactId>jandex-maven-plugin</artifactId>
<version>1.0.7</version>
<executions>
<execution>
<!-- added: -->
<?m2e ignore?>
<id>make-index</id>
<goals>
<goal>jandex</goal>
</goals>
</execution>
</executions>
</plugin>
最佳答案
Jandex 插件没有用于 Eclipse 的连接器。
只需添加一个忽略规则。如果您选择了正确的选项,Eclipse 会为您执行此操作,并将忽略规则添加到您的 pom.xml。
关于eclipse - maven:生命周期配置未涵盖的插件执行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59175451/