site:stage is just a local preview of site:deploy, you need to specify a
distributionManagement.url in the parent pom so links between modules
will be consistent with the deployed site.
HTH,
-Lukas
Daivish Shah wrote:
Hi,
I have project structure as below.
maven-parent-project
maven-ejb
maven-schema
maven-ws
maven-ear
I have all require entry to generate the site in all POM.XML I am able to
execute "mvn site" and mvn site:site command successfully.
But when i am trying to execute following command i am getting exception.
mvn site:stage
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1.156s
[INFO] Finished at: Mon Feb 27 17:11:46 PST 2012
[INFO] Final Memory: 4M/15M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-site-plugin:3.0:deploy (default-cli) on
project maven-project-parent: Missing distribution
management in project Maven Parent Project
(maven-parent-project:maven-parent-project:0.0.1-SNAPSHOT) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
As i know if i don't execute this command i can't access all sub modules
from the parents index.html so i have to execute this command successfully.
Please help me out, Where i am wrong exactly?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]