Open morungos opened 8 years ago
Unlike the Maven documents imply, maven-resources-plugin
does filter property files by default, or seems to. When I added <filtering>false</filtering>
to business/pom.xml
the log4j is intact, and then the variables will get substituted later. However, they still point to a funny place for a log.
I've just seen a problem building a Debian package for cBioPortal. I'm using jdeb, so I'm packaging on a different system to deployment. The problem is in the
log4j.properties
file, which contains the following:These are being termplated by Maven, so the file embedded in the war reads:
The location should not be hardwired inside the application. There are many ways to solve this, ranging from wiring the logger to some container-provided log, to environment variables.