Maven resource filtering doesn't write output to "WEB-INF" inside my war

Solution Unverified - Updated -

Issue

  • I have maven resource filtering activated in the pom.xml, following page Apache Maven Resources Plugin > Filtering, but when I run the build, variable substitutions happen as they should but the output files are written to WEB-INF/classes. The un-filtered source configuration files are copied to WEB-INF and loaded eventually.
  • In maven-resource-plugin (mvn resources:resources and resources-copy-resources), how to set up the output path correctly in the pom.xml ?
  • How to do maven filtering into WEB-INF rather than into WEB-INF/classes in a war project ?

Environment

  • Apache Maven
    • 3.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.