I have logback.properties
file which contains the following properties.
#logging
logging.server=
logging.port=
logging.path=/opt/${project.name}/logs
Inside my POM
file I've got the <name>
tag, which specifies the project name. I'd like to inject this name in few properties files like the lockback
one above. Doing the above results in creating a folder called project.name_IS_UNDEFINED
. Is it possible to access the project name and how?
UPDATE
Ralph gave the correct answer, however check my comment, because for spring boot applications you need to used %project.name%
instead of ${project.name}
!