首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >maven:生命周期配置未涉及的插件执行

maven:生命周期配置未涉及的插件执行
EN

Stack Overflow用户
提问于 2019-12-04 11:54:43
回答 2查看 1.1K关注 0票数 3

我使用eclipse,并在我的pom.xml中包含了以下依赖项:

代码语言:javascript
复制
<dependency>
    <groupId>org.jboss.jandex</groupId>
    <artifactId>jandex-maven-plugin</artifactId>
    <version>1.0.7</version>
</dependency>

当使用这个插件时:

代码语言:javascript
复制
<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中得到了这个错误:

代码语言:javascript
复制
 Plugin execution not covered by lifecycle configuration: 
org.jboss.jandex:jandex-maven-plugin:1.0.7:jandex 
(execution: make-index, phase: process-classes)

当单击“发现新的m2连接器”时,我会得到以下错误:

代码语言:javascript
复制
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:

代码语言:javascript
复制
<!-- 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>
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-12-04 12:37:17

Jandex插件没有用于Eclipse的连接器。

只需添加一个忽略规则。如果选择正确的选项,Eclipse将为您执行此操作,并将为您的pom.xml添加一个忽略规则。

票数 3
EN

Stack Overflow用户

发布于 2021-05-24 01:52:17

看起来有一个更新的Jandex版本1.0.8可能已经解决了这个问题。我引用了多模块maven上的夸克文档,该文档链接到1.0.7。我有几个问题运行在夸夸斯:发展模式。一旦我意识到有一个1.0.8更新,我所有的问题都消失了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59175451

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档