Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ exclude folder from exploded war

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?

like image 301
ipapag Avatar asked Jan 20 '16 09:01

ipapag


1 Answers

Try going to:

Project Structure -> Artifacts

Select the exploded .war, go to the Output Layout tab and configure your desired layout.

like image 70
ChrisGeo Avatar answered Oct 07 '22 02:10

ChrisGeo