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

前端 未结 30 2687
小蘑菇
小蘑菇 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:51

    I was using

    org.apache.maven.plugins
    maven-antrun-plugin
    1.6
    
        
            runSomeAntTasks
            test-compile
            .
            .
            
                run
            
        
    
    

    and changed it to

    org.apache.maven.plugins
    maven-antrun-plugin
    1.6
    
    
        runSomeAntTasks
        integration-test
            .
            .
    
            
                run
            
        
    
    

    and the error went away. Maybe it's not recommended to bind an execution to the test-compile phase so finding a different phase might be an alternate solution to adding plugin-management configuration to the maven lifecycle.

提交回复
热议问题