You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Böckling <mi...@giniality.com> on 2005/11/14 19:22:30 UTC

How to customize report execution

Hi,

is there a way to include reports (like checkstyle) into a specific 
phase of the M2 lifecycle?
I tried to put the maven-checkstyle-plugin in the <plugins> section of 
my POM (instead of the <reporting> section) and got a build error, 
saying that "'report' was specified in an execution, but not found in 
the plugin". Upon closer examination, I found that the Mojo API differs 
in that there is no execute() method in CheckstyleReport.java, but 
instead an executeReport() method.
Now does that mean I'm out of luck? What I would like to do is to 
execute certain checks in certain phases of the build, so I can abort 
when there is an error, lowering the stress on the build server.

Thank you very much,
Michael Böckling


P.S.: POM extract:
<plugins>
 <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-checkstyle-plugin</artifactId>
    <version>2.0-beta-1</version>
    <executions>
     <execution>
       <goals>
         <goal>report</goal>
       </goals>
     </execution>
    </executions>
 </plugin>
</plugins>

-- 
Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
P: +41 61 226 99 63 - F: +41 61 226 99 69
michael.boeckling@giniality.ch; http://www.giniality.com/



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


Re: How to customize report execution

Posted by Brett Porter <br...@gmail.com>.
Generating a report works - the problem is the goal is called
"checkstyle" not "report".

On 11/15/05, Michael Böckling <mi...@giniality.com> wrote:
> Hi,
>
> is there a way to include reports (like checkstyle) into a specific
> phase of the M2 lifecycle?
> I tried to put the maven-checkstyle-plugin in the <plugins> section of
> my POM (instead of the <reporting> section) and got a build error,
> saying that "'report' was specified in an execution, but not found in
> the plugin". Upon closer examination, I found that the Mojo API differs
> in that there is no execute() method in CheckstyleReport.java, but
> instead an executeReport() method.
> Now does that mean I'm out of luck? What I would like to do is to
> execute certain checks in certain phases of the build, so I can abort
> when there is an error, lowering the stress on the build server.
>
> Thank you very much,
> Michael Böckling
>
>
> P.S.: POM extract:
> <plugins>
>  <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-checkstyle-plugin</artifactId>
>     <version>2.0-beta-1</version>
>     <executions>
>      <execution>
>        <goals>
>          <goal>report</goal>
>        </goals>
>      </execution>
>     </executions>
>  </plugin>
> </plugins>
>
> --
> Giniality AG - Michael Böckling; Steinenberg 21, CH-4051 Basel
> P: +41 61 226 99 63 - F: +41 61 226 99 69
> michael.boeckling@giniality.ch; http://www.giniality.com/
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@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