What is the project directory structure for stand-alone Java se applications?

What is the standard project directory structure for stand-alone Java se (command line based) applications?

The SRC folder will contain all the files in the correctly organized package Java file Except I have a bin folder that will contain my Class file

There are property files and XML configuration files in my project Which directory should I put it in? I should create one called com myproject. Config package and place all XML configuration file?

I want to pack the accessory can with my final packaging Then I should create a folder (by the name LIB) to hold all this Jar file?

Solution

I recommend sticking to the default Maven layout (and also using Maven as a build tool)

Production / resources:

src/main/java
src/main/resources

Test data and classes:

src/test/java
src/test/resources

Maven can also wrap all the jars you need (look for Maven assembly plug-ins)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>