Uploaded image for project: 'Maven Resources Plugin'
  1. Maven Resources Plugin
  2. MRESOURCES-252

Add m2e lifecycle Metadata to plugin

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • None
    • None
    • eclipse for java 4.11.0
      m2e maven plugin 1.11
      OS: nixOS 2019-03

    Description

      Would it be possible to add m2e lifecycle information [1] to this plugin?

      I think this would increase usability in eclipse a lot, because the default 'quick fix' in eclipse is to ignore the plugin, leading to missing resources when running an application from Eclipse.

      It would require adding the following file:

      META-INF/m2e/lifecycle-mapping-metadata.xml:

      <lifecycleMappingMetadata>
          <pluginExecutions>
              <pluginExecution>
                  <pluginExecutionFilter>
                      <goals>
                          <goal>resources</goal>
                          <goal>testResources</goal>
                      </goals>
                  </pluginExecutionFilter>
                  <action>
                      <execute>
                          <runOnIncremental>true</runOnIncremental>
                      </execute>
                  </action>
              </pluginExecution>
          </pluginExecutions>
      </lifecycleMappingMetadata>
      

      [1] https://www.eclipse.org/m2e/documentation/m2e-making-maven-plugins-compat.html

      Attachments

        Issue Links

          Activity

            People

              slachiewicz Sylwester Lachiewicz
              akrimm Alexander Krimm
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: