[
http://jira.codehaus.org/browse/MHIBERNATE-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Johann Reyes closed MHIBERNATE-74.
----------------------------------
Resolution: Won't Fix
As per described here:
http://mojo.codehaus.org/hibernate3/hibernate3-maven-plugin/components.html the
output directory can be configured in the following way in your case:
{code:title=pom.xml|borderStyle=solid}
<components>
<component>
<name>hbm2ddl</name>
<outputDirectory>src/main/resources</outputDirectory>
</component>
</components>
{code}
> Let the user specify the full path of the outputfilename property
> -----------------------------------------------------------------
>
> Key: MHIBERNATE-74
> URL: http://jira.codehaus.org/browse/MHIBERNATE-74
> Project: Maven 2.x Hibernate Plugin
> Issue Type: Improvement
> Components: hbm2ddl
> Affects Versions: 2.0-alpha-2, 2.0, 2.1
> Environment: Linux/Windows
> Reporter: Leandro Casadei
> Assignee: Johann Reyes
>
> I'm unable to change the destination folder other than target/hibernate3/sql.
> I mean, I can specify subfolders, but I want the generated SQL file to be
> placed inside src/main/resources instead of the target folder.
> I've tried ../../../ but it fails saying that the file doesn't exist.
> Looking at the *Hbm2DDLExporterMojo* class, I can see the default constructor
> definition as:
> {code:title=Hbm2DDLExporterMojo.java|borderStyle=solid}
> public Hbm2DDLExporterMojo()
> {
> addDefaultComponent( "target/hibernate3/sql", "configuration", false
> );
> addDefaultComponent( "target/hibernate3/sql",
> "annotationconfiguration", true );
> }
> {code}
> It would be great that those values wouldb't be harcoded anymore.
--
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