maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rubén Barroso <ruben.mail...@gmail.com>
Subject [m2] Missing properties in schemaexport
Date Wed, 23 Nov 2005 19:17:05 GMT
Hello, I've been trying to use hibernate plugin in maven 2, but it
doesn't work me. I've tried to achieve the same goal (schemaexport)
with the following code:

	  <plugin>
	   <groupId>org.apache.maven.plugins</groupId>
                   <artifactId>maven-antrun-plugin</artifactId>
                   <executions>
                      <execution>
                      <phase>package</phase>
                      <configuration>
                         <tasks>
		<echo>dialect: ${hibernate.dialect}</echo>				
		<taskdef name="schemaexport"
	              classname="org.hibernate.tool.hbm2ddl.SchemaExportTask">
					<classpath>
						<path refid="maven.dependency.classpath"/>
					</classpath>
				</taskdef>
				<mkdir dir="target/schema"/>
				<schemaexport
					quiet="no"
					text="no"
					drop="no"
					delimiter=";"
					output="target/schema/create-tables.sql">
					<fileset dir="target/classes" includes="**/*.hbm.xml"/>
				</schemaexport>	
			
              </tasks>
            </configuration>
            <goals>
              <goal>run</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

When I execute 'mvn package', it says me that I must set the property
'hibernate.dialect'. On the other hand, <echo> works fine!!! Any
ideas??

Thanks in advance

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message