How to organize source files of Java program?

后端 未结 1 690
一个人的身影
一个人的身影 2021-01-03 13:59

I\'ve created small program in Java. It uses Java classes, some images and generates some other resources (.php files, images, stylesheets etc).

相关标签:
1条回答
  • 2021-01-03 14:36

    I will recommend the below maven structure as the standard convention even if you are not using maven.

    src/main/java   Application/Library sources
    src/main/resources  Application/Library resources
    src/main/filters    Resource filter files
    src/main/assembly   Assembly descriptors
    src/main/config Configuration files
    src/main/scripts    Application/Library scripts
    src/main/webapp Web application sources
    src/test/java   Test sources
    src/test/resources  Test resources
    src/test/filters    Test resource filter files
    src/site    Site
    LICENSE.txt Project's license
    NOTICE.txt  Notices and attributions required by libraries that the project depends on
    README.txt  Project's readme
    
    0 讨论(0)
提交回复
热议问题