Open Tibor17 opened 6 years ago
Did you read 'know issues' sections? https://github.com/yandex-qatools/postgresql-embedded#known-issues Is it your case?
Thx @slavaz , I think it is my case. I tried to change the owner on Windows folder but no luck.
I did this in plugin config: <pgDatabaseDir>${project.build.directory}/data</pgDatabaseDir>
I launched this command to change owner to postgres
:
icacls data /grant:rw postgres:F /T
and then I run the build with mvn verify
Would this make sense and should this solve the issue?
You need to create new Windows user without admin privileges and try to run 'mvn verify' under the unprivileged user.
We started the plugin, see POM, via
mvn verify
. We also added a proxy tosettings.xml
. We are not able to connect to the port5432
viatelnet localhost 5432
on Windows. On Linux Ubuntu 16 we are able to connect viatelnet
and PgAdmin too. We think that the command line is not constructed so well on Windows.After we found the ZIP in user home, we extracted and started the database on command line with our commands, the database was bound to the port 5432 and telnet connected to it on Windows. We used these native commands:
set PGDATA=e:\tmp\zmaz\xx\x\target\data\
pg_ctl initdb
pg_ctl start -D e:\tmp\zmaz\xx\x\target\data\ -l logfile
now telnet:
telnet localhost 5432
Stop the database after successful connection
pg_ctl stop -D e:\tmp\zmaz\xx\x\target\data\ -l logfile
Here is our POM:
Here are Maven Debug logs of plugin configuration: