Open cjnickel opened 6 years ago
@aoathout - You know maven and pom best. Any suggestions?
@cjnickel It's easy enough to check any property in the POM; I just need to know what to check it against. For instance mulint could validate that any property with a name containing "jdbc.url" had an empty value.
@cjnickel I would have to pull the project down to take a look at why it isn't resolving when passing things in with '-D'. I can take a look once I get billing-process-api migrated to use wsflx
@cjnickel I did some more tests on this. I changed the pom.xml to have the following for the jdbc.url:
@aoathout - Yeah, I wasn't sure if we wanted to default the pom.xml to integrated auth since a majority of devs are on Windows still. Like you mentioned we'll still have to specify a value in munit test configurations. I've been putting a random string since we're not doing integration tests (obviously will adjust that if/when we have integration tests).
Do the following rules sound correct:
${policyholder.jdbc.url}
${policyholder.jdbc.url}
I would expect this approach may change with mule 4 / studio 7 as it sounds like that honors POM better but maybe then we can switch it to have jdbc url with a placeholder for the password?
Side Note We should probably figure out how to distribute credentials securely. I think IT department has something that tracks credentials but not positive.
With certain variables being set as placeholders in
pom.xml
,api.server.properties
, andapi.local.properties
I run into Anypoint Studio errors that prevent project from building due to recursive cycles.Example:
Setting database url values as
${policyholder.jdbc.url}
in each of these files which requires devs to pass in via run configuration results in the error icon for project. Note that passing in a-D
parameter still has errorPotential Fix:
Setting the database url to an empty xml tag in pom.xml resolves the issue. e.g.
<policyholder.jdbc.url />