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

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

    I had this problem today. I was using STS 3.4 with its bundled Roo 1.2.4. Later I tried with Eclipse Kepler and Roo 1.2.5, same error.

    I've changed my pom.xml adding pluginTemplates tag after build and before plugins declaration but didn't work.

    What made the magic for me:

    • Using jdk 1.7.0_51
    • Downloaded Roo 1.2.5
    • Downloaded Maven 3.2.1 (if not, when executes "perform eclipse" this error appears "error=2, no such file or directory")
    • Configured JDK, Roo and Maven bin directories on my PATH:

      export PATH=/opt/jdk1.7.0_51/bin:$PATH export PATH=/opt/spring-roo-1.2.5.RELEASE/bin:$PATH export PATH=/opt/apache-maven-3.2.1/bin:$PATH

    Made my configuration as following: (http://docs.spring.io/spring-roo/reference/html/beginning.html)

    $ mkdir hello 
    $ cd hello
    $ roo.sh
    roo> project --topLevelPackage com.foo
    roo> jpa setup --provider HIBERNATE --database HYPERSONIC_PERSISTENT 
    roo> web mvc setup
    roo> perform eclipse
    

    Open with Eclipse (nothing of STS, but I guess it works): Import -> Existing Projects into Workspace

提交回复
热议问题