Using maven, I would like to get the my project version within spring but without filtering. I tried it like this
@PropertySource("classpath:META-INF/maven/groupId/artifactId/pom.properties")
as proposed here: Access maven project version in Spring config files
As written there it is not possible with test or jetty:run. maven is generating the META-INF only in the packaged archive. Is there a way to instruct maven to generate META-INF before so you can start jetty:run, let spring read the project version from manifest without getting an error?