Maven synchronization fails on hibernate.cfg.xml?


I ran into a problem where the maven integration in Idea seems to trip over the file hibernate.cfg.xml and aborts the synchronization with the message: Error: Could not parse configuration file: file:/........./hibernate.cfg.xml.

The project is setup to store it's .ipr/.iml files in a seperate location from the place where the pom files are read. I don't know if this causes the problem, since the $ might be different in the section below? I'll try to setup the project differently by storing the Idea files in the default locations... Thanks, Raymond <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>hibernate3-maven-plugin</artifactId> <configuration> <component> <name>hbm2ddl</name> <implementation>annotationconfiguration</implementation> </component> <componentProperties> <configurationfile>$/src/test/config/hibernate.cfg.xml dana-ddl-mysql.sql true true true false false generate-resources hbm2ddl ......... ]]>

Comment actions Permalink

Ok, so I created a brand new project based on my maven model and unchecked the option to store the ipr/iml files at a different location and it doesn;t change a thing. The project wizard fails with a popup giving the exact same message as stated above.

I forgot to mention the version: build 7821.

Should I post this as a bug in IntelliJ?


Comment actions Permalink

Hi, Raymond,

I've tried your pom piece and have no problem importing it.
Could you send me all necessary files that lead to the problem?



Please sign in to leave a comment.