Guest User

Untitled

a guest
Feb 18th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.63 KB | None | 0 0
  1. project
  2. |
  3. |-> application
  4. |-> approval-management
  5. |-> database
  6. |-> security
  7. ...
  8.  
  9. <?xml version="1.0" encoding="UTF-8"?>
  10. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  12. <modelVersion>4.0.0</modelVersion>
  13.  
  14. <parent>
  15. <artifactId>application</artifactId>
  16. <groupId>com.test</groupId>
  17. <version>0.0.1-SNAPSHOT</version>
  18. </parent>
  19. <artifactId>database</artifactId>
  20.  
  21.  
  22. <properties>
  23. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  24. <java.version>1.8</java.version>
  25. </properties>
  26.  
  27.  
  28. <profiles>
  29. <profile>
  30. <id>local</id>
  31. <properties>
  32. <activatedProperties>local</activatedProperties>
  33. </properties>
  34. <activation>
  35. <activeByDefault>true</activeByDefault>
  36. </activation>
  37. </profile>
  38. <profile>
  39. <id>test</id>
  40. <properties>
  41. <activatedProperties>test</activatedProperties>
  42. </properties>
  43. </profile>
  44. </profiles>
  45.  
  46.  
  47. <dependencies>
  48. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-actuator -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-actuator</artifactId>
  52. <version>2.1.2.RELEASE</version>
  53. </dependency>
  54.  
  55. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->
  56. <dependency>
  57. <groupId>org.springframework.boot</groupId>
  58. <artifactId>spring-boot-starter-web</artifactId>
  59. <version>2.1.2.RELEASE</version>
  60. </dependency>
  61.  
  62.  
  63. <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test -->
  64. <dependency>
  65. <groupId>org.springframework.boot</groupId>
  66. <artifactId>spring-boot-starter-test</artifactId>
  67. <version>2.1.2.RELEASE</version>
  68. <scope>test</scope>
  69. </dependency>
  70.  
  71. <dependency>
  72. <groupId>org.springframework</groupId>
  73. <artifactId>spring-web</artifactId>
  74. <version>5.1.4.RELEASE</version>
  75. </dependency>
  76.  
  77. <dependency>
  78. <groupId>com.h2database</groupId>
  79. <artifactId>h2</artifactId>
  80. <version>1.4.197</version>
  81. <scope>compile</scope> <!-- use compile, as we also use H2 locally to run it -->
  82. </dependency>
  83. <dependency>
  84. <groupId>javax.servlet</groupId>
  85. <artifactId>servlet-api</artifactId>
  86. <version>2.5</version>
  87. <scope>compile</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.hibernate</groupId>
  91. <artifactId>hibernate-core</artifactId>
  92. <version>5.3.7.Final</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.oracle</groupId>
  96. <artifactId>ojdbc7</artifactId>
  97. <version>12.1.0.2</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.flywaydb</groupId>
  101. <artifactId>flyway-core</artifactId>
  102. <version>5.2.4</version>
  103. <scope>provided</scope>
  104. </dependency>
  105. </dependencies>
  106.  
  107. <build>
  108. <finalName>application</finalName>
  109. <plugins>
  110. <plugin>
  111. <groupId>org.springframework.boot</groupId>
  112. <artifactId>spring-boot-maven-plugin</artifactId>
  113. </plugin>
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-compiler-plugin</artifactId>
  117. <configuration>
  118. <source>8</source>
  119. <target>8</target>
  120. </configuration>
  121. </plugin>
  122. <plugin>
  123. <groupId>org.flywaydb</groupId>
  124. <artifactId>flyway-maven-plugin</artifactId>
  125. <version>5.2.4</version>
  126. </plugin>
  127. </plugins>
  128. </build>
  129.  
  130. spring.h2.console.settings.trace=false
  131. spring.h2.console.enabled=true
  132. spring.datasource.platform=h2
  133. spring.datasource.url=jdbc:h2:mem:testdb
  134. spring.datasource.driverClassName=org.h2.Driver
  135. spring.datasource.username=sa
  136. spring.datasource.password=
  137. spring.jpa.generate-ddl=false
  138. spring.jpa.hibernate.ddl-auto=none
  139. spring.datasource.initialize=false
  140. spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
  141.  
  142. ## FlyWay
  143. flyway.enabled=true
  144. flyway.baselineOnMigrate=false
  145. flyway.table=FLYWAY_SCHEMA_HISTORY
  146. flyway.locations=classpath:db/migration
  147. flyway.h2ConsoleEnabled=true
  148. flyway.h2Port=8011
  149.  
  150. flyway.sqlMigrationPrefix=V
  151. flyway.sqlMigrationSeparator=__
  152. flyway.sqlMigrationSuffix=.sql
  153. flyway.validateOnMigrate=true
  154.  
  155. Failed to execute goal org.flywaydb:flyway-maven-plugin:5.2.4:migrate (default-cli) on project application: org.flywaydb.core.api.FlywayException: Unable to connect to the database. Configure the url, user and password!
Add Comment
Please, Sign In to add comment