[ 
https://issues.apache.org/jira/browse/MENFORCER-356?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532657#comment-17532657
 ] 

Slawomir Jaranowski commented on MENFORCER-356:
-----------------------------------------------

It is not good way to add meta-data or even worst depends plugin code on 
external api. 
If we go in this way we open possibility to adding meta-data for external tools 
....
So question - in next request we should add more meta-data for other IDE, tool 
... etc?

It should be resolved by m2e in some how, without changing plugins.

> Please support m2e lifecycle management
> ---------------------------------------
>
>                 Key: MENFORCER-356
>                 URL: https://issues.apache.org/jira/browse/MENFORCER-356
>             Project: Maven Enforcer Plugin
>          Issue Type: Bug
>         Environment: Linux
>            Reporter: Luke Hutchison
>            Priority: Major
>             Fix For: 3.0.1
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to