The following comment has been added to this issue: Author: David Eric Pugh Created: Fri, 23 Jul 2004 7:27 AM Body: Dion,
I took your advice and looked at the ear plugin.. Actually, found all the EntityResolver stuff in the j2ee plugin. At any rate, I added a HibernateEntityResolver etc... I think I configured everything, however I am still getting failures when not connected to the network. The HibernateEntityResolver is called, and everything looks good, but still trying to connect to hibernate.sourceforge.net. Could you run the unit test "test-hibernate-aggregate-mappings" in plugin-test for Hibernate and give me your opinon..? I swear everything is configured properly in the MappingsAggregatorBean, but no joy!: XMLWriter writer = new XMLWriter(new FileWriter(f), format); writer.setEntityResolver(new HibernateEntityResolver()); //writer.setResolveEntityRefs(false); Document finalDoc = DocumentHelper.createDocument(); Element rootHM = null; for(int i = 0; i < files.length; i++) { SAXReader reader = new SAXReader(false); reader.setEntityResolver(new HibernateEntityResolver()); --------------------------------------------------------------------- View this comment: http://jira.codehaus.org/browse/MPHIBERNATE-9?page=comments#action_22176 --------------------------------------------------------------------- View the issue: http://jira.codehaus.org/browse/MPHIBERNATE-9 Here is an overview of the issue: --------------------------------------------------------------------- Key: MPHIBERNATE-9 Summary: plugin:test fails without a network connection Type: Bug Status: Open Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: maven-hibernate-plugin Fix Fors: 1.2 Assignee: David Eric Pugh Reporter: dion gillard Created: Sun, 18 Jul 2004 11:31 AM Updated: Fri, 23 Jul 2004 7:27 AM Description: hibernate:aggregate-mappings: [echo] Aggregating multiple hibernate mapping into one single file Adding base dir: C:\source\maven-plugins\hibernate\src\plugin-test\target\classes Adding base dir: C:\source\maven-plugins\hibernate\src\plugin-test\src\etc Aggregating to C:\source\maven-plugins\hibernate\src\plugin-test/target/schema/aggregated-mappings.hbm.xml BUILD FAILED File...... C:\Documents and Settings\Dion Gillard\.maven\cache\maven-plugin-plugin-1.5.2-SNAPSHOT\plugin.jelly Element... maven:maven Line...... 314 Column.... 34 Unable to obtain goal [test-hibernate-aggregate-mappings] -- C:\Documents and Settings\Dion Gillard\.maven\cache\maven-hibernate-plu gin-1.2-SNAPSHOT\plugin.jelly:38:53: <h:aggregate-mappings> Mapping aggreagtion failed: hibernate.sourceforge.net Nested exception: hibernate.sourceforge.net Total time: 5 seconds Finished at: Mon Jul 19 01:28:37 EST 2004 If I have a net connection, all is fine. --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]