maven - JHipster and database connection -
i'm using jhipster , when run sudo mvn liquibase:diff
below error
[info] settings ---------------------------- [info] driver: org.postgresql.driver [info] url: jdbc:postgresql://localhost/gastos8 [info] username: gastos8 [info] password: ***** [info] use empty password: false [info] properties file: null [info] properties file override? false [info] prompt on non-local database? true [info] clear checksums? false [info] changelogfile: src/main/resources/config/liquibase/master.xml [info] context(s): null [info] label(s): null [info] referencedriver: null [info] referenceurl: hibernate:spring:com.cboujon.domain?dialect=org.hibernate.dialect.postgresql82dialect [info] referenceusername: null [info] referencepassword: null [info] referencedefaultschema: null [info] diffchangelogfile: src/main/resources/config/liquibase/changelog/20150807132702_changelog.xml [info] ------------------------------------------------------------------------ [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 9.554s [info] finished at: fri aug 07 13:27:12 art 2015 [info] final memory: 18m/179m [info] ------------------------------------------------------------------------ [error] failed execute goal org.liquibase:liquibase-maven-plugin:3.3.2:diff (default-cli) on project gastos8: error setting or running liquibase: liquibase.exception.databaseexception: org.postgresql.util.psqlexception: fatal: password authentication failed user "gastos8" -> [help 1] [error] [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception
i don't know why [info] username: gastos8
.
that config file:
application-dev.yml
spring: profiles: active: dev datasource: datasourceclassname: org.postgresql.ds.pgsimpledatasource url: databasename: gastos8 servername: localhost username: postgres password: --- jpa: database-platform: org.hibernate.dialect.postgresql9dialect database: postgresql openinview: false show_sql: true generate-ddl: false hibernate: ddl-auto: none naming-strategy: org.hibernate.cfg.ejb3namingstrategy properties: hibernate.cache.use_second_level_cache: true hibernate.cache.use_query_cache: false hibernate.generate_statistics: true hibernate.cache.region.factory_class: org.hibernate.cache.ehcache.singletonehcacheregionfactory
what doing wrong?
liquibase maven plugin not read application.yml know how connect database, has own configuration in pom.xml. have put there.
why executing maven sudo? now, have project files owned root, it's bad idea.
Comments
Post a Comment