Hello all,
I pulled most of my DB config for the jooq generator into an xml file.
I have something along these lines:
<plugin>
<!-- Specify the maven code generator plugin -->
<groupId>org.jooq</groupId>
<artifactId>jooq-codegen-maven</artifactId>
<version>${jooq-version}</version>
<!-- The plugin should hook into the generate goal -->
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<configurationFile>jooq_config.xml</configurationFile>
</configuration>
</plugin>
This all works great except now I need to drive the username/password credentials via ENV config. I tried doing something like this:
<jdbc>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://localhost:5432/social</url>
<user>${POSTGRES_USER}social</user>
<password>${POSTGRES_PASSWORD}</password>
</jdbc>
I tried both ${env.POSTGRES_PASSWORD} and ${POSTGRES_PASSWORD}
is this feasible with Jooq? Or do I need to do something in maven itself. I know that ${env.VAR_NAME} works in maven, do I need to bring the XML data back into the pom.xml for this pattern to work?
--