You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Stephen Gray <st...@nexala.com> on 2005/04/01 13:54:08 UTC

maven site

Hi,

How does the maven site refresh itself with the latest reports. Is it
necessary to deploy the site everytime to refresh it?

Thanks



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


Re: maven site

Posted by Martijn Dashorst <ma...@dashorst.dds.nl>.
Stephen Gray wrote:

>Thanks very much for that. I have one question though. If you use the goals
>in maven.xml to deploy the site will they ever be seen? Is cruisecontrol not
>going to be in a continuous loop?
>  
>
I don't understand what your concern is here. A goal in a maven.xml is 
almost the same as a plugin. In your cruisecontrol build spec, you can 
use the maven cruisecontrol plugin (the maven runner for cruisecontrol, 
not the plugin to generate cruisecontrol.xml files!) to run a build 
using maven, instead of the more common ant runner. This plugin allows 
you to give a goal to execute when CC is building your software. You can 
specify your maven.xml goal there as wel as a list of goals (instead of 
using the maven.xml file). So instead of creating a maven.xml file, you 
can also specify:
    jar:deploy-snapshot,site,site:sshdeploy

And if you are concerned this will create a loop in CC (which normally 
won't happen), you can always try it before you leave for the weekend, 
and monitor the output. No harm done then...

Martijn


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


RE: maven site

Posted by Stephen Gray <st...@nexala.com>.
Thanks very much for that. I have one question though. If you use the goals
in maven.xml to deploy the site will they ever be seen? Is cruisecontrol not
going to be in a continuous loop?



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


Re: maven site

Posted by Martijn Dashorst <ma...@dashorst.dds.nl>.
Stephen Gray wrote:

>Im actually using CruiseControl. How would that be implemented?
>  
>
Add a goal 'site:sshdeploy' to your goal list in CruiseControl. Or you 
could create a maven.xml with a special cc goal which performs the build 
and site deploy as you would do manually.

maven.xml:
...
<goal name="cc-build">
    <attainGoal name="jar:deploy-snapshot"/>
    <attainGoal name="site"/>
    <attainGoal name="site:sshdeploy"/>
</goal>

You have to make sure the sshdeploy (or fsdeploy) work automatically 
when you run them from within CC. This depends on under which user you 
run your CC build, etc.

Martijn


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


RE: maven site

Posted by Stephen Gray <st...@nexala.com>.
Im actually using CruiseControl. How would that be implemented?



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


Re: maven site

Posted by Martijn Dashorst <ma...@dashorst.dds.nl>.
Stephen Gray wrote:

>Hi,
>
>How does the maven site refresh itself with the latest reports. Is it
>necessary to deploy the site everytime to refresh it?
>  
>
Yes. But you could use CruiseControl (or a similar product) to do that 
for you...

Martijn


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