maven - 如何解读 M2E 中的生命周期映射对话框?

标签 maven maven-3 m2eclipse m2e

在eclipse M2E 1.2.0插件中,当我进入一个maven项目属性时,有一个生命周期映射对话框,这个对话框中的各个列是什么意思。我在网上搜索了解释,但没有找到任何可以清楚地解释各个列的含义的内容。

  • 每一列是什么意思?
  • 为什么剂量配置器会在映射中多次显示,例如在编译器中:编译
  • 来源栏中的不同来源是什么意思?

  • enter image description here

    更新:这个链接关于生命周期映射的好信息https://docs.sonatype.org/display/M2ECLIPSE/Customizable+build+lifecycle+mapping+for+m2e+extensions+developers#Customizablebuildlifecyclemappingform2eextensionsdevelopers-Introduction

    最佳答案

    What do each of the columns mean?



    插件执行:一个 Maven 目标,它被 m2eclipse 发现为绑定(bind)到您的 pom.xml。更多详情见Maven: Introduction to the Build Lifecycle

    Why dose configurator show up multiple times in Mapping for example in compiler:compile



    这可能是一个错误或信号,compiler:compile目标由多个配置器映射。

    What do the different sources mean in the source column?


  • 无趣:在 Eclipse
  • 中完全忽略了它
  • 默认值:它由 m2e 的内置处理程序处理,例如 maven-resources-plugin
  • 扩展:它由 m2e 外部的配置器处理
  • 关于maven - 如何解读 M2E 中的生命周期映射对话框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13329634/

    相关文章:

    eclipse - Maven/M2Eclipse 一直排除我的资源

    java - java项目转maven后找不到主类

    java - Eclipse 在创建 Maven 原型(prototype)项目时不使用最新的快照

    jenkins - Maven 构建失败并在 Jenkins 中显示消息

    java - Maven 程序集中是否有程序集 id 属性?

    maven - 使用 Maven 原型(prototype)时​​如何使用 artifactId 重命名目录?

    eclipse - 如何在 Eclipse 中保存时启动 Maven "compile"目标?

    java - Maven - 无法执行目标 org.apache.maven.plugins :maven-clean-plugin:2. 4.1:clean

    java - NoClassDefFound错误: Maven intermodule dependency

    maven - 同时使用 maven-flatten-plugin 和 maven-shade-plugin