2

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

I'm compiling sources as .jar and creating an .exe program, which should use my .jar and other resources.

What is the best practice to organize all sources of my Java program?

4

1 回答 1

6

即使您不使用 maven,我也会推荐以下 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
于 2012-08-12T22:29:38.243 回答