How to solve “Plugin execution not covered by lifecycle configuration” for Spring Data Maven Builds

前端 未结 30 2703
小蘑菇
小蘑菇 2020-11-21 15:10

I am trying to work with Spring Data and Neo4j. I started by trying to follow this guide linked to by the main site. In particular I based my pom.xml off of the \"Hello, Wor

相关标签:
30条回答
  • 2020-11-21 15:31

    m2e 0.13 introduce a m2e connectors and m2e Market Place to extend m2e features. It's like the old m2e-extras repository.

    You can access the m2e market place from the preferences: Preferences>Maven>Discovery>Open Catalog. Installing WTP integration solved most plugin issues for me.

    0 讨论(0)
  • 2020-11-21 15:31

    Change the Maven preferences for plugin execution from error to ignore

    0 讨论(0)
  • 2020-11-21 15:34

    As an addendum to the previous answers -- there's a workaround I just discovered for if you can't or don't want to add all this boilerplate to your project POM. If you look in the following location:

    {Eclipse_folder}/plugins/org.eclipse.m2e.lifecyclemapping.defaults_{m2e_version}
    

    You should find a file called lifecycle-mapping-metadata.xml where you can make the same changes described in the other answers and in M2E plugin execution not covered.

    0 讨论(0)
  • 2020-11-21 15:34

    I've had the same problem with indigo and a project that needs to generate Java sources from XSD.
    I could fix it by supplying the missing life-cycle mapping, as described on this page

    0 讨论(0)
  • 2020-11-21 15:34

    Where find WTP:

    Mouse down on < plugin > in pom.xml and 'Discover new m2e connectors'.

    I installed them all what are default checked and it works.

    0 讨论(0)
  • 2020-11-21 15:34

    This answer is just as good the top plugin-management answer above (which is to say, it's terrible).

    Just delete all the offending xml code in the pom.

    Done. Problem solved (except you just broke your maven config...).

    Devs should be very careful they understand plugin-management tags before doing any of these solutions. Just slapping plugin-management around your plugins are random is likely to break the maven build for everyone else just to get eclipse to work.

    0 讨论(0)
提交回复
热议问题