Hey all, I must be completely lost. The hibernate3 plugin has stopped
complaining, but the generated schema.sql file is empty :-(.
The setup is as such:
I have some starting annotations set up in
edu.vt.iddl.meval.schema.SequencePoint
I've copy-pasted next to anything I could from the
hibernate3-maven-plugin documentation, and set up a hibernate.cfg.xml
file appropriately (afaik).
$ mvn hibernate3:hbm2ddl
Generates an empty schema.sql file.
I've attached the relevant pom.xml and hibernate.cfg.xml files, and
below's the output from maven.
Seriously, thanks for any help.
-ls
[EMAIL PROTECTED] qgenerator]$ !mvn
mvn hibernate3:hbm2ddl
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hibernate3'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building qgenerator
[INFO] task-segment: [hibernate3:hbm2ddl]
[INFO]
----------------------------------------------------------------------------
[INFO] Preparing hibernate3:hbm2ddl
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING]
Artifact junit:junit:jar:3.8.1:test retains local scope 'test'
overriding broader scope 'compile'
given by a dependency. If this is not intended, modify or
remove the local scope.
[INFO] [hibernate3:hbm2ddl]
[INFO] Configuration XML file loaded:
/Users/lally/Work/School/GRA/IDDL/New_System/meval/trunk/whole/qgenerator/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded:
/Users/lally/Work/School/GRA/IDDL/New_System/meval/trunk/whole/qgenerator/src/main/resources/hibernate.cfg.xml
[INFO] src/main/resources/database.properties not found within the
project. Trying absolute path.
[INFO] No hibernate properties file loaded.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Feb 26 15:50:48 EST 2007
[INFO] Final Memory: 5M/10M
[INFO] ------------------------------------------------------------------------
[EMAIL PROTECTED] qgenerator]$ !cat
cat `find . -name "*.sql" -print`
[EMAIL PROTECTED] qgenerator]$
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.url">jdbc:mysql://localhost/iddl</property>
<property name="connection.username">lally</property>
<property name="connection.password">password</property>
<property name="connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<mapping class="edu.vt.iddl.meval.schema.SequencePoint" />
</session-factory>
</hibernate-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!--+
| @version $Id: pom.xml 485613 2006-12-11 11:19:36Z reinhard $
+-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<name>qgenerator</name>
<groupId>edu.vt.iddl.meval</groupId>
<artifactId>qgenerator</artifactId>
<version>1.0-SNAPSHOT</version>
<scm>
<connection>scm:svn:svn+ssh://iddl.vt.edu/home/subversion/ratlee/meval/trunk/whole/qgenerator</connection>
<developerConnection>scm:svn:svn+ssh://iddl.vt.edu/home/subversion/ratlee/meval/trunk/whole/qgenerator</developerConnection>
<tag>HEAD</tag>
</scm>
<build>
<extensions>
<extension>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.0.4</version>
</extension>
</extensions>
<plugins>
<!-- As the reloading classloader plugin hasn't been released yet, it is uncommented.
In order to use it, you have to build it yourself and activate the section below. -->
<!--plugin>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-rcl-plugin</artifactId>
<version>1.0.0-M1-SNAPSHOT</version>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.0.2</version>
<configuration>
<connectors>
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
<port>8888</port>
<maxIdleTime>30000</maxIdleTime>
</connector>
</connectors>
<webAppSourceDirectory>${project.build.directory}/rcl/webapp</webAppSourceDirectory>
<contextPath>/</contextPath>
<systemProperties>
<systemProperty>
<name>org.apache.cocoon.mode</name>
<value>dev</value>
</systemProperty>
</systemProperties>
</configuration>
</plugin-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.1</version>
<configuration>
<archive>
<manifestEntries>
<Cocoon-Block-Name>${pom.artifactId}</Cocoon-Block-Name>
</manifestEntries>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.0-SNAPSHOT</version>
<configuration>
<components>
<component>
<name>hbm2ddl</name>
<implementation>annotationconfiguration</implementation>
</component>
<component>
<name>hbm2hbmxml</name>
<outputDirectory>src/main/resources</outputDirectory>
</component>
</components>
<componentProperties>
<drop>true</drop>
<jdk5>true</jdk5>
<configurationfile>/src/main/resources/hibernate.cfg.xml</configurationfile>
<outputfilename>schema.sql</outputfilename>
</componentProperties>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<dependencies>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-core</artifactId>
<version>2.2.0-M2</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-blocks-fw-impl</artifactId>
<version>1.0.0-M1</version>
</dependency>
<dependency>
<groupId>org.apache.cocoon</groupId>
<artifactId>cocoon-template-impl</artifactId>
<version>1.0.0-M2</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>
<repositories>
<repository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>Codehaus Snapshots</id>
<url>http://snapshots.repository.codehaus.org/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</project>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email