Hi, I trying to run pmd using the maven-pmd-plugin configured in my pom.xml from within Eclipse. Using the command line, everything works fine (mvn pmd:pmd)
When invoking the maven2 verify goal from within Eclipse using the Run as - Maven2 build ... I receive the following error: INFO] pmd:pmd [ERROR] mojo-execute : pmd:pmd Diagnosis: An error has occurred in PMD Report report generation. FATAL ERROR: Error executing Maven for a project [ERROR] project-execute : project.test:test-pojo:jar:1.0.0 ( task-segment: [pmd:pmd] ) Diagnosis: An error has occurred in PMD Report report generation. FATAL ERROR: Error executing Maven for a project [ERROR] reactor-execute : D:\dev.env\dev\projects\test\TestProject Diagnosis: An error has occurred in PMD Report report generation. FATAL ERROR: Error executing Maven for a project [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An error has occurred in PMD Report report generation. [INFO] ------------------------------------------------------------------------ [DEBUG] Trace An error has occurred in PMD Report report generation. [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Mar 14 16:18:17 CET 2007 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------ [INFO] Error for project: Unnamed - project.test:test-pojo:jar:1.0.0 (during pmd:pmd) [INFO] ------------------------------------------------------------------------ [INFO] An error has occurred in PMD Report report generation. [INFO] ------------------------------------------------------------------------ [DEBUG] Trace An error has occurred in PMD Report report generation. [INFO] ------------------------------------------------------------------------ [ERROR] reactor-execute : D:\dev.env\dev\projects\test\TestProject FATAL ERROR: Error executing Maven for a project [INFO] BUILD ERRORS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Mar 14 16:18:17 CET 2007 [INFO] Final Memory: 3M/6M [INFO] ------------------------------------------------------------------------ Has anybody had the same problems? Thanks in advance, Regards, Les. Reference info: I'm using the following pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>project.test</groupId> <artifactId>test-pojo</artifactId> <version>1.0.0</version> <description>Template for Pojo Projects supported by Maven Build</ description> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</ artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId > <artifactId>maven-pmd-plugin</artifactId> <executions> <execution> <goals> <goal>check</goal> <goal>cpd-check</ goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.1</version> </dependency> </dependencies> <reporting> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId > <artifactId>maven-pmd-plugin</artifactId> <configuration> <sourceEncoding>utf-8</ sourceEncoding> <minimumTokens>100</minimumTokens> <targetJdk>1.5</targetJdk> </configuration> </plugin> </plugins> </reporting> </project> The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or the entity to whom it is addressed and others authorised to receive it. If you have received it by mistake, please let the sender know by e-mail reply and delete it from your system. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance of the contents of this information is strictly prohibited and may be unlawful. Honda Europe NV is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
