我使用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中得到了这个错误:
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>发布于 2019-12-04 12:37:17
Jandex插件没有用于Eclipse的连接器。
只需添加一个忽略规则。如果选择正确的选项,Eclipse将为您执行此操作,并将为您的pom.xml添加一个忽略规则。
发布于 2021-05-24 01:52:17
看起来有一个更新的Jandex版本1.0.8可能已经解决了这个问题。我引用了多模块maven上的夸克文档,该文档链接到1.0.7。我有几个问题运行在夸夸斯:发展模式。一旦我意识到有一个1.0.8更新,我所有的问题都消失了。
https://stackoverflow.com/questions/59175451
复制相似问题