Skip to end of metadata
Go to start of metadata

The default directory layout of Maven is as follows.

 
basedirectory
|
+- pom.xml                   //Project descriptor
+- LICENSE.txt
+- README.txt
|
+- src/                      //Contains all source files
|  |
|  +- main/
|  |  +- assembly/           //Assembly descriptors
|  |  |  +- assembly.xml     //Default assembly descriptor
|  |  |
|  |  +- config/             //Configuration files
|  |  +- java/               //Application/library source files
|  |  +- resources/          //Resource files
|  |  +- filters/            //Resource filter files
|  |  +- webapp/             //Webapp source files for a war project
|  |
|  +- test/
|  |  +- java/               //Test source files
|  |  +- resources/          //Test resource files
|  |  +- filters/            //Test filter files
|  |
|  +- site/
|     +- apt/                //Files written in APT format
|     |  +- index.apt
|     |
|     +- xdoc/               //Files written in XDOC format
|     |  +- other.xml
|     |
|     +- fml/                //Faq's
|     |  +- general.fml
|     |  +- faq.fml
|     |
|     +- resources/          //Resources
|     |  +- css/
|     |  |  +- site.css      //Can replace Maven's default site.css
|     |  |
|     |  +- images/          //Place your images here
|     |     +- pic1.jpg
|     |
|     +- site.xml            //Defines menu structure and logos
|
+- target/                   //Contains all target files
   +- classes/               //Generated class files
   +- site/                  //The generated site files

  • No labels

2 Comments

  1. I'd like to see some detailed information on plugins that use these directories as defaults, as well as suggestions for profiles, etc. Not entirely sure how to display that on the page, but if you've got an idea, please contribute!

  2. A plugins plugin-report seems to include this information. What about augmenting it in a way which includes a graphic or ascii-tree highlighting the directories the plugin uses? Seems like it would be handy.