I haven't specified a version. My POM looks like <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-pmd-plugin</artifactId> <configuration> <linkXRef>true</linkXRef> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> </plugin> </plugins> </reporting>
-----Original Message----- From: Doug Douglass [mailto:[EMAIL PROTECTED] Sent: 29 June 2006 13:39 To: Maven Users List Subject: Re: maven-pmd-plugin can't find my source files What version of the plugin? We've been using 2.1-SNAPSHOT for many months and haven't seen the problems you describe. On 6/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Heiko, > > I have the same issue. Except that only a blank page is created. > > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-pmd-plugin</artifactId> > </plugin> > > I also use JXR for cross referencing java > > <plugin> > > <groupId>org.apache.maven.plugins</groupId> > > <artifactId>maven-jxr-plugin</artifactId> > </plugin> > > Either I am missing something fundamental, or the documentation on > http://maven.apache.org/plugins/maven-pmd-plugin/howto.html > is wrong. Or there are bugs with the plugin. > > Rgds > Andy > > -----Original Message----- > From: Heiko Wolf [mailto:[EMAIL PROTECTED] > Sent: 29 June 2006 07:58 > To: users@maven.apache.org > Subject: maven-pmd-plugin can't find my source files > > Hello, > > I have a very little maven project (only one source file), sources as > usual in src/main/java, everything works fine, mvn compile, mvn site > and so on. But not mvn pmd:pmd. It generates some files > (target/basic.xml, target/unusedcode.xml ...), pmd.xml is also > generated, but its nearly empty. It contains only an pmd-tag, nothing > more. I try to integrate the pmd-plugin in my site-report, which seems > to work because pmd-sites are generateded, but they are useless > because the file-section is empty. The maven-pmd-plugin is unable to > find my source code, I think, but why? I also tried the > checkstyle-plugin, which just works fine as expected without any > special treatment. Any suggestions how I can figure out the problem? Here is the output of the command: > > #mvn -e pmd:pmd > + Error stacktraces are turned on. > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'pmd'. > [INFO] > ---------------------------------------------------------------------- > -- > ---- > [INFO] Building InquiryPortlet > [INFO] task-segment: [pmd:pmd] > [INFO] > ---------------------------------------------------------------------- > -- > ---- > [INFO] [pmd:pmd] > [WARNING] Unable to locate Source XRef to link to - DISABLED [INFO] > ---------------------------------------------------------------------- > -- > [INFO] BUILD SUCCESSFUL > [INFO] > ---------------------------------------------------------------------- > -- > [INFO] Total time: 9 seconds > [INFO] Finished at: Thu Jun 29 08:53:31 CEST 2006 [INFO] Final Memory: > 4M/108M [INFO] > ---------------------------------------------------------------------- > -- > > As far as I know, the warning has nothing to do with my problem. > > Is there any way to point the maven-pmd-plugin to the source files? > But I thought, this is unnecessary if my source files are on standard > location. > > > Regards > > Heiko Wolf > -- > > > "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... > Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > Visit our website at http://www.ubs.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please notify > the sender immediately by e-mail if you have received this e-mail by > mistake and delete this e-mail from your system. > > E-mail transmission cannot be guaranteed to be secure or error-free as > information could be intercepted, corrupted, lost, destroyed, arrive > late or incomplete, or contain viruses. The sender therefore does not > accept liability for any errors or omissions in the contents of this > message which arise as a result of e-mail transmission. If > verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]