Advertisement
Guest User

Untitled

a guest
Jun 6th, 2018
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. [INFO] Settings
  2. ----------------------------
  3. [INFO] driver: org.postgresql.Driver
  4. [INFO] url: jdbc:postgresql://localhost/gastos8
  5. [INFO] username: gastos8
  6. [INFO] password: *****
  7. [INFO] use empty password: false
  8. [INFO] properties file: null
  9. [INFO] properties file will override? false
  10. [INFO] prompt on non-local database? true
  11. [INFO] clear checksums? false
  12. [INFO] changeLogFile: src/main/resources/config/liquibase/master.xml
  13. [INFO] context(s): null
  14. [INFO] label(s): null
  15. [INFO] referenceDriver: null
  16. [INFO] referenceUrl: hibernate:spring:com.cboujon.domain?dialect=org.hibernate.dialect.PostgreSQL82Dialect
  17. [INFO] referenceUsername: null
  18. [INFO] referencePassword: null
  19. [INFO] referenceDefaultSchema: null
  20. [INFO] diffChangeLogFile: src/main/resources/config/liquibase/changelog/20150807132702_changelog.xml
  21. [INFO] ------------------------------------------------------------------------
  22. [INFO] ------------------------------------------------------------------------
  23. [INFO] BUILD FAILURE
  24. [INFO] ------------------------------------------------------------------------
  25. [INFO] Total time: 9.554s
  26. [INFO] Finished at: Fri Aug 07 13:27:12 ART 2015
  27. [INFO] Final Memory: 18M/179M
  28. [INFO] ------------------------------------------------------------------------
  29. [ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:3.3.2:diff (default-cli) on project gastos8: Error setting up or running Liquibase: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "gastos8" -> [Help 1]
  30. [ERROR]
  31. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  32. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  33. [ERROR]
  34. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  35. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
  36.  
  37. spring:
  38. profiles:
  39. active: dev
  40. datasource:
  41. dataSourceClassName: org.postgresql.ds.PGSimpleDataSource
  42. url:
  43. databaseName: gastos8
  44. serverName: localhost
  45. username: postgres
  46. password: ---
  47.  
  48. jpa:
  49. database-platform: org.hibernate.dialect.PostgreSQL9Dialect
  50. database: POSTGRESQL
  51. openInView: false
  52. show_sql: true
  53. generate-ddl: false
  54. hibernate:
  55. ddl-auto: none
  56. naming-strategy: org.hibernate.cfg.EJB3NamingStrategy
  57. properties:
  58. hibernate.cache.use_second_level_cache: true
  59. hibernate.cache.use_query_cache: false
  60. hibernate.generate_statistics: true
  61. hibernate.cache.region.factory_class: org.hibernate.cache.ehcache.SingletonEhCacheRegionFactory
  62.  
  63. <groupId>org.liquibase</groupId>
  64. <artifactId>liquibase-maven-plugin</artifactId>
  65. <version>${liquibase.version}</version>
  66. <configuration>
  67. <changeLogFile>src/main/resources/config/liquibase/master.xml</changeLogFile>
  68. <diffChangeLogFile>src/main/resources/config/liquibase/changelog/${maven.build.timestamp}_changelog.xml</diffChangeLogFile>
  69. <driver>com.mysql.jdbc.Driver</driver>
  70. <url>jdbc:mysql://localhost:3306/MYDATABASENAME</url>
  71. <defaultSchemaName>MYDATABASENAME</defaultSchemaName>
  72. <username>HERE</username>
  73. <password>HERE</password>
  74. <referenceUrl>hibernate:spring:pt.farol.destfinder.domain?dialect=org.hibernate.dialect.MySQLInnoDBDialect&hibernate.ejb.naming_strategy=org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy</referenceUrl>
  75. <verbose>true</verbose>
  76. <logging>debug</logging>
  77. </configuration>
  78.  
  79. datasource:
  80. driver-class-name: com.mysql.jdbc.jdbc2.optional.MysqlDataSource
  81. url: jdbc:mysql://database hosting address:3306/database Name?useUnicode=true characterEncoding=utf8
  82. name: database Name
  83. username: database user name
  84. password: and put here database user password
  85.  
  86. <plugin>
  87. <groupId>org.liquibase</groupId>
  88. <artifactId>liquibase-maven-plugin</artifactId>
  89. <version>${liquibase.version}</version>
  90. <configuration>
  91. <propertyFileWillOverride>true</propertyFileWillOverride>
  92. <propertyFile>target/classes/liquibase.properties</propertyFile>
  93. </configuration>
  94. (...)
  95. </plugin>
  96.  
  97. contexts:${liquibase.contexts}
  98. changeLogFile:src/main/resources/config/liquibase/master.xml
  99. driver:${dataSource.project.driverClass}
  100. url:${dataSource.project.jdbcURL}
  101. username:${dataSource.project.user}
  102. password:${dataSource.project.password}
  103. verbose:true
  104. dropFirst:false
  105.  
  106. <build>
  107. <resources>
  108. <resource>
  109. <directory>src/main/resources/config/liquibase</directory>
  110. <filtering>true</filtering>
  111. </resource>
  112. </resources>
  113. (...)
  114. </build>
  115.  
  116. <profile>
  117. <id>dev</id>
  118. (...)
  119. <properties>
  120. <liquibase.contexts></liquibase.contexts>
  121. <dataSource.project.driverClass>org.mariadb.jdbc.Driver</dataSource.project.driverClass>
  122. <dataSource.project.jdbcURL>jdbc:mariadb://localhost:3306/yourDatabaseName</dataSource.project.jdbcURL>
  123. <dataSource.project.user>${datasource.username}</dataSource.project.user>
  124. <dataSource.project.password>${datasource.password}</dataSource.project.password>
  125. </properties>
  126. </profile>
  127.  
  128. mvn resources:resources liquibase:update -Pdev -Ddatasource.username=root -Ddatasource.password=root
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement