We have a java web project in IntelliJ (Ultimate 14.1.14) and we want to exclude a certain folder from the exploded war.
Using a maven profile we created the folder gets excluded from the generated war file, but we need to exclude it in the exploded war too, when running the project using IntelliJ.
Project's Run Configuration: Project's run configuration
We tried different approaches such as marking the folder as excluded in Project Structure > Modules window, and also in Settings > Build, Execution, Development > Compiler > Excludes but nothing worked.
Does anyone know how we can do that?
Try going to:
Project Structure -> Artifacts
Select the exploded .war, go to the Output Layout
tab and configure your desired layout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With