How to filter resources when using maven jetty plugin?
问题 I have an XML file (urlrewrite.xml) that needs a property placeholder resolved. I enable Maven filtering to achieve this. This works fine for the assembled WAR file. <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> The problem is when trying to run the application in development mode using the maven-jetty-plugin (Maven Jetty Plugin), as maven jetty:run . The file in question, urlrewrite.xml, is located in the src/main/resources