Foreign
Foreign

Reputation: 405

IntelliJ adds a 'generated' folder/package to artifact

When I build a .jar artifact using IntelliJ, it adds an empty folder/package named 'generated' to my jar file. Why is that?

My artifact 'Output Layout':

name.jar
-  file.yml
- '%module name%' compile output

enter image description here

Upvotes: 3

Views: 368

Answers (1)

CrazyCoder
CrazyCoder

Reputation: 402543

generated directory appears in the output if you have annotation processing enabled in IntelliJ IDEA compiler settings.

You can disable this option, delete the generated directory and rebuild the project and the artifact to make it go away, but it should not affect your application in any way, so you can just ignore it.

Upvotes: 1

Related Questions