maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Bljahhin" <igor.bljah...@gmail.com>
Subject Re: site plug-in error if src folders do not exist
Date Wed, 22 Feb 2006 11:55:40 GMT
Hello,

I have the same problem. There is no src folder in my EAR subproject
and PMD report fails on it.

Igor

On 2/13/06, Shukla, Sanjay <sanjay_shukla@mcgraw-hill.com> wrote:
> I am wondering if this is a know error for the site plug-in, throws an
> error if src folders do not exist. Src folders are absent as I am using
> a module to aggregate packages.
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
> ----
>
> [INFO] Building RMS Packager
>
> [INFO]    task-segment: [site:site]
>
> [INFO]
> ------------------------------------------------------------------------
> ----
>
> [INFO] Preparing surefire-report:report
>
> [INFO] [ear:generate-application-xml]
>
> [INFO] Generating application.xml
>
> [INFO] [resources:resources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> [INFO] [site:site]
>
> [WARNING] Error loading report org.apache.maven.plugin.jxr.JxrReport -
> AbstractMethodError: canGenerateReport()
>
> [WARNING] Error loading report
> org.codehaus.mojo.surefire.SurefireReportMojo - AbstractMethodError:
> canGenerateReport()
>
> [INFO] Generate "JavaDocs" report.
>
> [INFO] Generate "CPD Report" report.
>
> [INFO]
> ------------------------------------------------------------------------
> ----
>
> [ERROR] BUILD ERROR
>
> [INFO]
> ------------------------------------------------------------------------
> ----
>
> [INFO] Error during report generation
>
>
>
> Embedded error: Couldn't find directory
> C:\IdeaProjects\rms271\rms\rmspackager\src\java
>
> [INFO]
> ------------------------------------------------------------------------
> ----
>
> [INFO] Trace
>
> org.apache.maven.lifecycle.LifecycleExecutionException: Error during
> report generation
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:556)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoa
> l(DefaultLifecycleExecutor.java:485)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
> ifecycleExecutor.java:455)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
> Failures(DefaultLifecycleExecutor.jav
>
> a:303)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:270)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
> ycleExecutor.java:139)
>
>         at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
> a:39)
>
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
> Impl.java:25)
>
>         at java.lang.reflect.Method.invoke(Method.java:324)
>
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
> report generation
>
>         at
> org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:389)
>
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
> nager.java:415)
>
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
> LifecycleExecutor.java:531)
>
>         ... 16 more
>
> Caused by: org.apache.maven.reporting.MavenReportException: Couldn't
> find directory C:\IdeaProjects\rms271\rms\rmspackag
>
> er\src\java
>
>         at
> org.apache.maven.plugin.pmd.CpdReport.executeReport(CpdReport.java:159)
>
>         at
> org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenRep
> ort.java:98)
>
>         at
> org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.jav
> a:802)
>
>         at
> org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
>
>         ... 18 more
>
> Caused by: java.io.FileNotFoundException: Couldn't find directory
> C:\IdeaProjects\rms271\rms\rmspackager\src\java
>
>         at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:69)
>
>         at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:58)
>
>         at
> org.apache.maven.plugin.pmd.CpdReport.executeReport(CpdReport.java:155)
>
>         ... 21 more
>
> [INFO]
> ------------------------------------------------------------------------
> ----
>
> [INFO] Total time: 3 minutes 38 seconds
>
> [INFO] Finished at: Mon Feb 13 03:52:01 EST 2006
>
> [INFO] Final Memory: 18M/52M
>
> [INFO]
> ------------------------------------------------------------------------
> ----
>
> Sanjay Shukla,
>
> HPI Product Engineering, 2 Penn Plaza, NY.
>
> 212 904 3629 Office
>
> 732 692 4419 Cell
>
>
>
>
>
>
>
Mime
View raw message