To generate a site, using the clover and dashboard plugin currently I need
to use the following command-line:
mvn clover2:setup site clover2:aggregate clover2:clover
dashboard:dashboard site:deploy
(this is to overcome some problems with the site-plugin, which in
multi-module builds seems to have problems running some targets after all
children have been built).
Is there any way to shorten this to a simple command, like
mvn doMyFullSite
I could of course use a shell-script, but I had to copy this to any
multi-module build, which I want to avoid ("don't repeat yourself").
I'd rather prefer to have a construct that I can embed in my parent-pom.
I gave the maven-invoker-plugin a try, just bound to the initialize phase
and put into a profile, so I could start it with
mvn -PdoMyFullSite
(see snippet of the configuration below).
BUT: in a multimodule build now these targets are run for every child as
well, so this is not what I want :(
Any other ideas ?
-- invoker-plugin-configuration ---------
<profile>
<id>doMyFullSite</id>
<build>
<defaultGoal>initialize</defaultGoal>
<plugins>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<pom>pom.xml</pom>
<noLog>true</noLog>
<streamLogs>true</streamLogs>
<suppressSummaries>true</suppressSummaries>
</configuration>
<executions>
<execution>
<id>doItAll</id>
<phase>initialize</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<goals>
<goal>clover2:setup</goal>
<goal>site</goal>
<goal>clover2:aggregate</goal>
<goal>clover2:clover</goal>
<goal>dashboard:dashboard</goal>
<goal>site:deploy</goal>
</goals>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
-------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]