问题
In Eclipse , whenever I create a new Java project, it's structure will be as follows.
Project
|
|
-------- src
|
-------- bin
src is a Source Folder. bin is the output folder. I need to have some more normal folders like lib,conf,docs,etc in all my projects. Now I am creating every folder manually by myself whenever I create a new project.Is there anyway or plugin available to create additional folders(Not Source folders) in Eclipse when creating new project? I am not interested in plugin-development. Any readily available plugin would be nice.
回答1:
Unfortunately, there is no plugin for that. If you don't want to keep a skeleton folder to copy over, I suggest you try writing or searching the web for a Maven project archetype. Writing an archetype is quite straightforward, have a look here. You will have to install Maven plugin in Eclipse and, upon creation of a new Maven project, you will be offered to use such a template.
回答2:
Not that I know of, but if you're in the same workspace, why not create a default, empty project with the folders you want and then copy-and-paste into newly-created projects?
来源:https://stackoverflow.com/questions/16415099/custom-directory-structure-in-eclipse-new-project