Ok. Thanks, I'll try that today.

On 4/26/06 3:56 PM, "Mike Perham" <[EMAIL PROTECTED]> wrote:

> William, you don't say which version you are using.  The SVN head of the
> PMD plugin appears to fix this bug (canGenerateReport() checks to ensure
> the source directory already exists).  If you can't live without this
> functionality until the next release, you will need to compile a
> snapshot yourself.
> 
> On 4/26/06, William Simons <[EMAIL PROTECTED]> wrote:
>> 
>> I posted this on the PMD forum with no response so I thought I'd try
>> here too...
>> 
>> I want to incorporate PMD into my Maven 2 build and have run into a
>> bit of a snag. I have a multi-module project and included the plugin
>> configuration in my reporting section of the parent POM. The problem
>> that I have is that some of my child projects do not have a
>> src/main/java directory (no Java code) and CPD is failing with a:
>> 
>> Caused by: org.apache.maven.reporting.MavenReportException: Couldn't
>> find directory 
>> /Users/bsimons/projects/svn/ping/server/core-xml/src/main/java
>> at 
>> org.apache.maven.plugin.pmd.CpdReport.executeReport(CpdReport.java:159
>> )
>> at
>> org.apache.maven.reporting.AbstractMavenReport.generate
>> (AbstractMavenReport.
>> java:98)
>> at
>> org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.j
>> ava
>> :80
>> 2)
>> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
>> ... 18 more
>> Caused by: java.io.FileNotFoundException: Couldn't find directory
>> /Users/bsimons/projects/svn/ping/server/core-xml/src/main/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
>> 
>> 
>> Running the pmd:pmd plugin does not fail in the same way. Is there a
>> way for me to configure the plugin so that if the directory does not
>> exist, it should skip it?
>> 
>> Thanks.
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to