• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven and Hibernate plugin configuration

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic