Use MAVEN2 to establish a unified management site

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.