You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Daivish Shah <da...@gmail.com> on 2012/02/28 02:26:51 UTC

mvn site:stage is failing on multi-module project

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.

Re: mvn site:stage is failing on multi-module project

Posted by Daivish Shah <da...@gmail.com>.
HI Lukas,

Thanks for your suggestion i tried providing my localhost URL and it's
working now.

Thanks again for your quick help in understanding the mvn site:stage
command.


-Daivish.

On Tue, Feb 28, 2012 at 9:55 AM, Lukas Theussl <lt...@apache.org> wrote:

>
> The distributionManagement url is only used to construct relative links
> between different modules in a multi-module build. The actual absolute
> location is irrelevant for site:stage, you can use any dummy address, eg
> file://tmp/junk/ or the one you give below (did you try?). Evidently,
> you'll have to correct this once you want to really deploy the site.
>
>
> HTH,
> -Lukas
>
>
> Daivish Shah wrote:
>
>> HI Lukas,
>>
>> Which means if i don't provide Following TAG it will not work.
>>
>>   <distributionManagement>
>>     <site>
>>       <id>www.yourcompany.com</id>
>>       <url>scp://www.yourcompany.**com/www/docs/project/<http://www.yourcompany.com/www/docs/project/>
>> </url>
>>     </site>
>>   </distributionManagement>
>>
>>
>> For Local repository deployment i don't have any URL setup. As we are
>> trying to explore on this.
>>
>>
>> And once we know things we can setup the website for Javadoc.  But
>> there isn't any way to execute the fullsite ? I don't have actual URL
>> to provide here.
>>
>>
>> Please guide me.
>>
>>
>> Thanks.
>>
>>
>> On Mon, Feb 27, 2012 at 11:10 PM, Lukas Theussl<lt...@apache.org>
>>  wrote:
>>
>>
>>> 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/**<http://cwiki.apache.org/**confluence/display/MAVEN/**>
>>>> MojoExecutionException<http://**cwiki.apache.org/confluence/**
>>>> display/MAVEN/**MojoExecutionException<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: users-unsubscribe@maven.**apac**he.org<http://apache.org>
>>> <us...@maven.apache.org>
>>> >
>>>
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>>
>>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: mvn site:stage is failing on multi-module project

Posted by Lukas Theussl <lt...@apache.org>.
The distributionManagement url is only used to construct relative links 
between different modules in a multi-module build. The actual absolute 
location is irrelevant for site:stage, you can use any dummy address, eg 
file://tmp/junk/ or the one you give below (did you try?). Evidently, 
you'll have to correct this once you want to really deploy the site.

HTH,
-Lukas


Daivish Shah wrote:
> HI Lukas,
>
> Which means if i don't provide Following TAG it will not work.
>
>    <distributionManagement>
>      <site>
>        <id>www.yourcompany.com</id>
>        <url>scp://www.yourcompany.com/www/docs/project/</url>
>      </site>
>    </distributionManagement>
>
>
> For Local repository deployment i don't have any URL setup. As we are
> trying to explore on this.
>
>
> And once we know things we can setup the website for Javadoc.  But
> there isn't any way to execute the fullsite ? I don't have actual URL
> to provide here.
>
>
> Please guide me.
>
>
> Thanks.
>
>
> On Mon, Feb 27, 2012 at 11:10 PM, Lukas Theussl<lt...@apache.org>  wrote:
>
>>
>> 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<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: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: mvn site:stage is failing on multi-module project

Posted by Daivish Shah <da...@gmail.com>.
HI Lukas,

Which means if i don't provide Following TAG it will not work.

  <distributionManagement>
    <site>
      <id>www.yourcompany.com</id>
      <url>scp://www.yourcompany.com/www/docs/project/</url>
    </site>
  </distributionManagement>


For Local repository deployment i don't have any URL setup. As we are
trying to explore on this.


And once we know things we can setup the website for Javadoc.  But
there isn't any way to execute the fullsite ? I don't have actual URL
to provide here.


Please guide me.


Thanks.


On Mon, Feb 27, 2012 at 11:10 PM, Lukas Theussl <lt...@apache.org> wrote:

>
> 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<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: users-unsubscribe@maven.**apache.org<us...@maven.apache.org>
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: mvn site:stage is failing on multi-module project

Posted by Lukas Theussl <lt...@apache.org>.
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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org