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

前端 未结 30 2799
小蘑菇
小蘑菇 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条回答
  •  Happy的楠姐
    2020-11-21 15:42

    Note that the M2Eclipse (m2e) version 1.7.0 available in today's Eclipse Neon release train supports new syntax for specifying lifecycle mapping metadata. As a result boilerplate like this (here we're telling m2e to ignore the goal):

    
      
        
        
          org.eclipse.m2e
          lifecycle-mapping
          1.0.0
          
            
              
                
                  
                    org.codehaus.mojo
                    exec-maven-plugin
                    [1.5.0,)
                    
                      exec
                    
                  
                  
                    
                  
                
              
            
          
        
      
    
    

    can be replaced with a single line in the plugin's execution node:

    
    

    See the release notes for details.

提交回复
热议问题