These properties must be declared on the classpath and not in a separate file the way that POC and Prod are currently configured. Typically external property configuration is only used to override properties on the classpath with different values, but we have Prod and POC configured to ignore the classpath file completely.
The external properties files can stay the same and override every property if we still want it to, except we would want to remove the app.name and app.version declarations from there so the declarations in the classpath are used instead.
In order for COACH to read properties out of the POM, the following properties are needed:
app.name=@project.artifactId@ app.version=@project.version@
These properties must be declared on the classpath and not in a separate file the way that POC and Prod are currently configured. Typically external property configuration is only used to override properties on the classpath with different values, but we have Prod and POC configured to ignore the classpath file completely.
Suggested change to the restart script for coach:
Replace:
With:
The external properties files can stay the same and override every property if we still want it to, except we would want to remove the app.name and app.version declarations from there so the declarations in the classpath are used instead.