Closed DamienOReilly closed 6 years ago
I need steps to reproduce.
Would you please share values for: pgServerVersion, pgHost, pgPort, dbName, userName, password, pgDatabaseDir, pgLocale, pgCharset?
Sure thing, I haven't specified all properties. I just worked of the README example.
<pgServerVersion>9.5</pgServerVersion>
<pgServerPort>5432</pgServerPort>
<dbName>postgres</dbName>
<userName>test</userName>
<password>test</password>
I had a look into this and the cause is a missing pgHost
configuration, if this is not set then the java.lang.ProcessBuilder::start
method will throw a NPE as one of the arguments is null.
The solution for now is to add pgHost
like so
<pgServerVersion>9.5</pgServerVersion>
<pgServerPort>5432</pgServerPort>
<pgHost>localhost</pgHost>
<dbName>postgres</dbName>
<userName>test</userName>
<password>test</password>
Having the plugin default to localhost would be a good fix for the long run.
I've created the branch: https://github.com/slavaz/embedded-postgresql-maven-plugin/pull/9 Are you able to check it?
Tested without pgHost
set and all works fine. Thanks for fixing so quickly.
Released new version 1.2.2: [INFO] Uploaded: https://oss.sonatype.org:443/service/local/staging/deployByRepositoryId/comgithubslavaz-1008/com/github/slavaz/embedded-postgresql-maven-plugin/1.2.2/embedded-postgresql-maven-plugin-1.2.2-javadoc.jar
Just wait above a day - need to update all Maven mirrors...
Hitting a null pointer after the extraction is done: