Advertisement
Guest User

Untitled

a guest
Apr 17th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.45 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <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/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>ppss</groupId>
  5. <artifactId>dbunitexample</artifactId>
  6. <version>1.0-SNAPSHOT</version>
  7. <packaging>jar</packaging>
  8. <properties>
  9. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  10. <maven.compiler.source>1.8</maven.compiler.source>
  11. <maven.compiler.target>1.8</maven.compiler.target>
  12. </properties>
  13.  
  14. <dependencies>
  15. <dependency>
  16. <groupId>junit</groupId>
  17. <artifactId>junit</artifactId>
  18. <version>4.12</version>
  19. <scope>test</scope>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.hamcrest</groupId>
  23. <artifactId>hamcrest-core</artifactId>
  24. <version>1.3</version>
  25. <scope>test</scope>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.dbunit</groupId>
  29. <artifactId>dbunit</artifactId>
  30. <version>2.5.4</version>
  31. <scope>test</scope>
  32. </dependency>
  33.  
  34. <!--Log-->
  35. <dependency>
  36. <groupId>log4j</groupId>
  37. <artifactId>log4j</artifactId>
  38. <version>1.2.17</version>
  39. <scope>test</scope>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.slf4j</groupId>
  43. <artifactId>slf4j-simple</artifactId>
  44. <version>1.7.25</version>
  45. </dependency>
  46. <!--Log-->
  47. </dependencies>
  48. <build>
  49. <plugins>
  50. <!--para ejecutar sentencias SQL-->
  51. <plugin>
  52. <groupId>org.codehaus.mojo</groupId>
  53. <artifactId>sql-maven-plugin</artifactId>
  54. <version>1.5</version>
  55. <dependencies>
  56. <!--Conector MySQL-->
  57. <dependency>
  58. <groupId>mysql</groupId>
  59. <artifactId>mysql-connector-java</artifactId>
  60. <version>5.1.46</version>
  61. </dependency>
  62.  
  63. </dependencies>
  64. <!--Configuracion del conector-->
  65. <configuration>
  66. <driver>com.mysql.jdbc.Driver</driver>
  67. <url>jdbc:mysql://localhost:3306</url>
  68. <username>root</username><!-- usuarios y contraseña -->
  69. <password>ppss</password>
  70. </configuration>
  71.  
  72. <executions>
  73. <execution>
  74. <id>create-customer-table</id>
  75. <phase>pre-integration-test</phase>
  76. <goals>
  77. <goal>execute</goal>
  78. </goals>
  79. <configuration>
  80. <srcFiles>
  81. <!-- script SQL path de acceso -->
  82. <srcFile>src/test/resources/sql/create_table_customer.sql</srcFile>
  83. </srcFiles>
  84. </configuration>
  85. </execution>
  86.  
  87. </executions>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement