Maven 由工程构建站点

maven 可以使用mvn site命令来将工程构建成一个项目站点。

如果是第一次部署的话,仍然需要下载一些组件到本地仓库。[code]D:\workdir\testing\my-app>mvn site
[INFO] Scanning for projects…
[INFO] ------------------------------------------------------------------------
[INFO] Building my-app
[INFO] task-segment: [site]
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-projec
t-info-reports-plugin/2.1/maven-project-info-reports-plugin-2.1.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-projec
t-info-reports-plugin/2.1/maven-project-info-reports-plugin-2.1.jar

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
default/1.0-alpha-20/plexus-container-default-1.0-alpha-20.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-containers
/1.0-alpha-20/plexus-containers-1.0-alpha-20.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-
jar/1.0/maven-shared-jar-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/bcel/bcel/5.2/bcel-5.2.pom

Downloading: http://repo1.maven.org/maven2/jakarta-regexp/jakarta-regexp/1.4/jak
arta-regexp-1.4.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
-api/1.0-beta-3/wagon-provider-api-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/1.0-beta
-3/wagon-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh/1.0-
beta-3/wagon-ssh-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider
s/1.0-beta-3/wagon-providers-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/com/jcraft/jsch/0.1.38/jsch-0.1.38.po
m

Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-ssh-comm
on/1.0-beta-3/wagon-ssh-common-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv
ity-api/1.0-alpha-6/plexus-interactivity-api-1.0-alpha-6.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-interactiv
ity/1.0-alpha-6/plexus-interactivity-1.0-alpha-6.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.4/
plexus-utils-1.4.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-file/1.0
-beta-3/wagon-file-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-lig
htweight/1.0-beta-3/wagon-http-lightweight-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-http-sha
red/1.0-beta-3/wagon-http-shared-1.0-beta-3.pom

Downloading: http://repo1.maven.org/maven2/nekohtml/xercesMinimal/1.9.6.2/xerces
Minimal-1.9.6.2.pom

Downloading: http://repo1.maven.org/maven2/nekohtml/nekohtml/1.9.6.2/nekohtml-1.
9.6.2.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-api/1.
0/maven-scm-api-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm/1.0/ma
ven-scm-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-manage
r-plexus/1.0/maven-scm-manager-plexus-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-manage
rs/1.0/maven-scm-managers-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-perforce/1.0/maven-scm-provider-perforce-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
ers/1.0/maven-scm-providers-1.0.pom

Downloading: http://repo1.maven.org/maven2/regexp/regexp/1.3/regexp-1.3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-starteam/1.0/maven-scm-provider-starteam-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-svn-commons/1.0/maven-scm-provider-svn-commons-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
ers-svn/1.0/maven-scm-providers-svn-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-svnexe/1.0/maven-scm-provider-svnexe-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-cvs-commons/1.0/maven-scm-provider-cvs-commons-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
ers-cvs/1.0/maven-scm-providers-cvs-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-cvsexe/1.0/maven-scm-provider-cvsexe-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-cvsjava/1.0/maven-scm-provider-cvsjava-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/netbeans/lib/cvsclient/20060125/c
vsclient-20060125.pom

Downloading: http://repo1.maven.org/maven2/ch/ethz/ganymed/ganymed-ssh2/build210
/ganymed-ssh2-build210.pom

Downloading: http://repo1.maven.org/maven2/jakarta-regexp/jakarta-regexp/1.4/jak
arta-regexp-1.4.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-api/1.
0/maven-scm-api-1.0.jar
Downloading: http://repo1.maven.org/maven2/ch/ethz/ganymed/ganymed-ssh2/build210
/ganymed-ssh2-build210.jar
Downloading: http://repo1.maven.org/maven2/org/apache/bcel/bcel/5.2/bcel-5.2.jar

Downloading: http://repo1.maven.org/maven2/org/netbeans/lib/cvsclient/20060125/c
vsclient-20060125.jar

Downloading: http://repo1.maven.org/maven2/regexp/regexp/1.3/regexp-1.3.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-manage
r-plexus/1.0/maven-scm-manager-plexus-1.0.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-
jar/1.0/maven-shared-jar-1.0.jar
Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-perforce/1.0/maven-scm-provider-perforce-1.0.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-starteam/1.0/maven-scm-provider-starteam-1.0.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-svn-commons/1.0/maven-scm-provider-svn-commons-1.0.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-svnexe/1.0/maven-scm-provider-svnexe-1.0.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-cvs-commons/1.0/maven-scm-provider-cvs-commons-1.0.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-cvsexe/1.0/maven-scm-provider-cvsexe-1.0.jar

Downloading: http://repo1.maven.org/maven2/org/apache/maven/scm/maven-scm-provid
er-cvsjava/1.0/maven-scm-provider-cvsjava-1.0.jar

[INFO] [site:site {execution: default-site}]
[INFO] artifact org.apache.maven.skins:maven-default-skin: checking for updates
from central
Downloading: http://repo1.maven.org/maven2/org/apache/maven/skins/maven-default-
skin/1.0/maven-default-skin-1.0.jar

[INFO] Generating “About” report.
[INFO] Generating “Issue Tracking” report.
[INFO] Generating “Project Team” report.
[INFO] Generating “Dependencies” report.
[INFO] Generating “Continuous Integration” report.
[INFO] Generating “Source Repository” report.
[INFO] Generating “Project License” report.
[INFO] Generating “Mailing Lists” report.
[INFO] Generating “Plugin Management” report.
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun
-plugin/1.3/maven-antrun-plugin-1.3.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-assemb
ly-plugin/2.2-beta-2/maven-assembly-plugin-2.2-beta-2.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-depend
ency-plugin/2.0/maven-dependency-plugin-2.0.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-deploy
-plugin/2.4/maven-deploy-plugin-2.4.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-ear-pl
ugin/2.3.1/maven-ear-plugin-2.3.1.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-ejb-pl
ugin/2.1/maven-ejb-plugin-2.1.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-javado
c-plugin/2.5/maven-javadoc-plugin-2.5.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-rar-pl
ugin/2.2/maven-rar-plugin-2.2.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-releas
e-plugin/2.0-beta-8/maven-release-plugin-2.0-beta-8.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/release/maven-releas
e/5/maven-release-5.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-source
-plugin/2.0.4/maven-source-plugin-2.0.4.pom

[INFO] Generating “Project Summary” report.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 27 seconds
[INFO] Finished at: Wed May 05 18:00:10 EDT 2010
[INFO] Final Memory: 20M/39M
[INFO] ------------------------------------------------------------------------
D:\workdir\testing\my-app>[/code][attach]869[/attach]