Another advantage of using MAVEN2 is that there is a unified portal for viewing the progress of the project. This includes the introduction of the project, the introduction of the members, the documentation of the related project, and of course all the progress reports of the project.
Here's an example of how to configure MAVEN to produce a project site.
First create the related site
mvn archetype:create \
-DarchetypeGroupId=org.apache.maven.archetypes \
-DarchetypeArtifactId=maven-archetype-site \
-DgroupId=com.mycompany.app \
-DartifactId=my-app-site
You will see the following directory:
my-app-site
|-- pom.xml
`-- src
`-- site
|-- apt
| |-- format.apt
| `-- index.apt
|-- fml
| `-- faq.fml
|-- fr
| |-- apt
| | |-- format.apt
| | `-- index.apt
| |-- fml
| | `-- faq.fml
| `-- xdoc
| `-- xdoc.xml
|-- xdoc
| `-- xdoc.xml
|-- site.xml
`-- site_fr.xml
Of course, you can not use this to generate a site, directly in the original SRC directory to add site directory on the line. Of course, in order to simplify the operation, the general into the corresponding site directory, and then copied to the corresponding SRC directory.