Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Maven and Hibernate plugin configuration

Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am having an estrange behavior when configuring in a pom file a hibernate plugin and the execution goals. I am having this estrange error:

The pom file is the following and the errors appear where I marked in comments:

Can anyone give me a hint of what the error can be?

Thank you in advance.
Posts: 5856
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking at the documentation for the hibernate3-maven-plugin:hbm2cfgxml goal, I see this:

Invokes the execution of the lifecycle phase generate-resources prior to executing itself.

I think that setting hbm2cfgxml to run at the generate-resources causes a possible infinite loop and perhaps that is what Maven is complaining about.

I see in the docs that the hbm2java goal runs during the generate-sources phase by default. Try removing the phases from the goals that have default phases.

Try using different execution ids, perhaps those are causing a conflict with the default ids.

Also, try running with the -X option. At the start of the output there will be a build plan report that identifies all of the plugin goals that will run and what their settings are, perhaps that might give a clue.

Finally, which version of Maven are you running?
Onion rings are vegetable donuts. Taste this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic