Having a Java Project with Multiple src folders?

已回答
Can I have a Java Project with Multiple src folders, with only one program entry-point (main)? Thanks
0

Hello Luis,

Yes, it's possible to configure multiple sources root: https://www.jetbrains.com/help/idea/content-roots.html#configure-folders

0

Hi Yaroslv, that means I can create a jar file for each src, and one for the entire project?

0

Luis,

Artifact îs built per module, not per source root. If you need several JARs it's better to create nested modules for each one.

0

请先登录再写评论。