eclipse - maven:生命周期配置未涵盖的插件执行

标签 eclipse maven quarkus

我使用 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/

相关文章:

java - Tomcat 7 日志包含 "-Dfile.encoding=Cp1252": where does it come from?

security - 如何保护 Quarkus 中的/metrics、/health 和/openapi 端点?

java - 当我尝试启动模拟器时出现此错误意味着什么?

java - 尝试捕获不被强制

java - Eclipse 启动配置失败 : What does ResourcesPlugin. getWorkspace().getRoot().getFile() 评估为

postgresql - Spring MVC + Maven + JBoss : can't deploy (The application must supply JDBC connections)

multithreading - Maven 多线程构建如何工作?

java - 从 POM 中提取 Maven 依赖版本

quarkus - 测试 Quarkus 应用程序时如何使用内存 H2 数据库?

java - 如何忽略 quarkus 测试