Hibernate Maven Project Object Model (pom.xml)


/ Published in: XML
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
  4. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <groupId>uz.boo</groupId>
  7. <artifactId>hibernate-test</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <name>Hibernate Test</name>
  10. <packaging>war</packaging>
  11. <dependencies>
  12. <dependency>
  13. <groupId>junit</groupId>
  14. <artifactId>junit</artifactId>
  15. <version>3.8.1</version>
  16. <scope>test</scope>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.hibernate</groupId>
  20. <artifactId>hibernate</artifactId>
  21. <version>3.2.5.ga</version>
  22. <exclusions>
  23. <exclusion>
  24. <groupId>javax.transaction</groupId>
  25. <artifactId>jta</artifactId>
  26. </exclusion>
  27. </exclusions>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.apache.geronimo.specs</groupId>
  31. <artifactId>geronimo-jta_1.1_spec</artifactId>
  32. <version>1.1</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>log4j</groupId>
  36. <artifactId>log4j</artifactId>
  37. <version>1.2.14</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.hibernate</groupId>
  41. <artifactId>hibernate-annotations</artifactId>
  42. <version>3.3.0.ga</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.hibernate</groupId>
  46. <artifactId>hibernate-commons-annotations</artifactId>
  47. <version>3.3.0.ga</version>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <extensions>
  52. <extension>
  53. <groupId>log4j</groupId>
  54. <artifactId>log4j</artifactId>
  55. <version>1.2.14</version>
  56. </extension>
  57. </extensions>
  58. <plugins>
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-compiler-plugin</artifactId>
  62. <configuration>
  63. <source>1.5</source>
  64. <target>1.5</target>
  65. </configuration>
  66. </plugin>
  67. <plugin>
  68. <groupId>org.codehaus.mojo</groupId>
  69. <artifactId>hibernate3-maven-plugin</artifactId>
  70. <version>2.0</version>
  71. <executions>
  72. <execution>
  73. <id>generate-ddl</id>
  74. <phase>process-classes</phase>
  75. <goals>
  76. <goal>hbm2ddl</goal>
  77. </goals>
  78. </execution>
  79. </executions>
  80. </plugin>
  81. </plugins>
  82. </build>
  83. <reporting>
  84. <plugins>
  85. <plugin>
  86. <artifactId>maven-javadoc-plugin</artifactId>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.codehaus.mojo</groupId>
  90. <artifactId>jxr-maven-plugin</artifactId>
  91. </plugin>
  92. <plugin>
  93. <artifactId>maven-surefire-report-plugin</artifactId>
  94. </plugin>
  95. </plugins>
  96. </reporting>
  97. </project>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.