You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nicolas Chalumeau <ni...@gmail.com> on 2005/05/17 12:08:32 UTC

[m2] ignore some report

I have a site module that contain no src java file?

The main project have no report and the list of report to generate are
only in the module sub project.

In all the module I have : 

  <reports>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
      </plugin>
    </plugins>
  </reports>

Even if the site pom I include or not the following section :
  <reports>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
      </plugin>
    </plugins>
  </reports>

The pmd plugin try to generate its repport and fail

[INFO] [site:site]
[INFO] Generate pmd report.
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[ERROR] Cause:
org.apache.maven.plugin.MojoExecutionException: Error during site generation
        at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:181)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
        at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: java.lang.IllegalStateException: basedir
c:\TEMP\ts2-pm\refactoring\ts2-pm-site\src\main\java does not exist
        at org.codehaus.plexus.util.DirectoryScanner.scan(DirectoryScanner.java:539)
        at org.codehaus.plexus.util.FileUtils.getFileNames(FileUtils.java:1312)
        at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1281)
        at org.codehaus.plexus.util.FileUtils.getFiles(FileUtils.java:1275)
        at org.apache.maven.plugin.pmd.PmdReport.getFilesToProcess(PmdReport.java:180)
        at org.apache.maven.plugin.pmd.PmdReport.execute(PmdReport.java:105)
        at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:66)
        at org.apache.maven.doxia.DoxiaMojo.execute(DoxiaMojo.java:146)
        ... 14 more

Is it some inherance issue ? And how to ignore some report in specific modules?

Nicolas

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


Re: [m2] ignore some report

Posted by Brett Porter <br...@gmail.com>.
On 5/17/05, Nicolas Chalumeau <ni...@gmail.com> wrote:
> org.apache.maven.plugin.MojoExecutionException: Error during site generation

Fix for PMD.

> Is it some inherance issue ? And how to ignore some report in specific modules?

We've been discussing this. Report inheritence is not currently
completely decided.

- Brett

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