在学习Maven的时候,看到http://www.sonatype.com/books/maven-book/reference_zh/ch07s06.html#example_pom-for-simple-webapp
运行mvn hibernate3:hbm2ddl报错,到处上网查,发现需要修改pom.xml,在hibernate3-maven-plugin里加一个<jdk5>true</jdk5>就可以了
修改之后的plugin配置如下:
运行mvn hibernate3:hbm2ddl报错,到处上网查,发现需要修改pom.xml,在hibernate3-maven-plugin里加一个<jdk5>true</jdk5>就可以了
修改之后的plugin配置如下:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<componentProperties>
<jdk5>true</jdk5>
<implementation>annotationconfiguration</implementation>
</componentProperties>
</configuration>
<dependencies>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.7</version>
</dependency>
</dependencies>
</plugin>