[
http://jira.codehaus.org/browse/MOJO-672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89328
]
Matt Raible commented on MOJO-672:
----------------------------------
Where would I set this using the plugin? In <componentProperties>?
<componentProperties>
<haltonerror>true</haltonerror>
<drop>true</drop>
<jdk5>true</jdk5>
<propertyfile>target/test-classes/jdbc.properties</propertyfile>
<configurationfile>src/test/resources/hibernate.cfg.xml</configurationfile>
<skip>${maven.test.skip}</skip>
</componentProperties>
> Allow shutting down embedded derby from hibernate3-maven-plugin
> ---------------------------------------------------------------
>
> Key: MOJO-672
> URL: http://jira.codehaus.org/browse/MOJO-672
> Project: Mojo
> Issue Type: Wish
> Components: hibernate3
> Reporter: Matt Raible
> Assigned To: Johann Reyes
> Priority: Minor
>
> Related to MOJO-619:
> Currently you cannot shutdown Derby (using the JDBC URL like
> "jdbc:derby:${project.build.directory}/db;shutdown=true"), because
> getConnection in this case always throws exception (the explanation of this
> behavior is here:
> http://blog.gmane.org/gmane.comp.apache.db.derby.user/month=20060701).
> I propose adding some option (like
> "<onConnectionError>skip</onConnectionError>") to ignore database connection
> errors and simply to return from the mojo without raising an exception.
> This functionality could be quite handy, since in some cases you need to
> shutdown database after executing some statements against it, just to make
> sure all subsequent connections to this embedded Derby database will be OK.
> For example, I use sql-maven-plugin to populate the database before running
> integration tests against an application deployed into the embedded Jetty
> container. And since this container runs in the same JVM, the application
> throws exception during the database startup.
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email