Search code examples
javajspintellij-idea

How to put files to out/artifacts the JSP file is not generated


How to put files to out/artifacts the JSP file is not generated.

Project structure:enter image description here

The JSP file shown in the figure is not generated.

I can only put manually copied files into the out/artifacts directory. Is there a better solution?

My IDEA version is 2023.1.2.

These are my artifacts:

Artifacts:enter image description here

Facets:enter image description here


Solution

  • You have a wrong project structure. The out folder is used for a compiler output, and not for running your application from it. If you need to deploy to another location to be able to compile sources and build artifacts during a web server is started.