Uploaded image for project: 'Maven Enforcer Plugin'
  1. Maven Enforcer Plugin
  2. MENFORCER-356

Please support m2e lifecycle management

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Linux

    Description

      The maven-enforcer-plugin does not work with m2e without configuration using the `lifecyleManagement` tag. However, that tag causes numerous bad interactions between m2e and commandline mvn.

      Recently m2e added a new configuration mechanism for specifying the lifecycle management configuration:

      https://www.eclipse.org/m2e/documentation/release-notes-17.html#new-syntax-for-specifying-lifecycle-mapping-metadata

      The directive that works for me to get maven-enforcer-plugin to work with m2e is:

      <?m2e execute onConfiguration,onIncremental?>

      However, this style of directive, <?...?>, breaks numerous tools, including Sonatype's artifact publishing framework, and the Scrutinizer CI / static code analyzer, because they use custom XML parsers that can't yet handle this syntax. That means I have to leave the directive in the pom.xml while developing, so that I can use Eclipse, and then I have to remove it before publishing or analyzing any built jar.

      It would be very helpful if maven-enforcer-plugin could make use of the m2e lifecycle management API internally to configure itself to work with m2e, so that this directive is not needed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lukehutch Luke Hutchison
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: