Why are project layout resources kept separate from Java sources?

后端 未结 8 2110
小鲜肉
小鲜肉 2020-12-10 02:05

Why does maven keep resources in a separate \"source folder\" from the Java sources?

From my experience, in Java the resource files are mostly treated like Java sou

8条回答
  •  萌比男神i
    2020-12-10 02:14

    What do you think? I think that the guys behind Maven should exercise a little "separation of concerns". The number one reason to use Maven is for dependency management, but why should a blender tell me how to peel my fruit? It makes no sense to me at all.

    Is there a good reason why maven keeps resources separate from sources? No. In a java project, the duplication of package structure, not once, but three times, adds unnecessary work to the project, increasing the risk for errors and reducing the agility of the code.

提交回复
热议问题