Embedded error produced when failing parse on a hibernate annotation (3.1beta9) 
in java file
--------------------------------------------------------------------------------------------

                 Key: MPMD-37
                 URL: http://jira.codehaus.org/browse/MPMD-37
             Project: Maven 2.x Pmd Plugin
          Issue Type: Bug
    Affects Versions: 2.1
         Environment: MACOSX 10.4.7 (PowerPC)
            Reporter: Simon Baker


Running mvn pmd:check produces the error:

Embedded error: Failure executing PMD for: 
/Users/simon/Eclipse/workspace/Gratr/src/main/java/com/aol/cms/domain/CMSContentObject.java
Encountered "}" at line 16, column 58.
Was expecting one of:
    "boolean" ...
    "byte" ...
    "char" ...
    "double" ...
    "false" ...
    "float" ...
    "int" ...
    "long" ...
    "new" ...
    "null" ...
    "short" ...
    "super" ...
    "this" ...
    "true" ...
    "void" ...
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <CHARACTER_LITERAL> ...
    <STRING_LITERAL> ...
    <IDENTIFIER> ...
    "(" ...
    "{" ...
    "@" ...
    "!" ...
    "~" ...
    "++" ...
    "--" ...
    "+" ...
    "-" ...


In the CMSContentObject.java file, line 16, column 58: @Table(name = 
"cms_content_object", uniqueConstraints = {})
                                                             

Here's what's in the pom.xml:

<dependency>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-pmd-plugin</artifactId>
      <version>2.1</version>
      <scope>test</scope>
</dependency>  
<dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate</artifactId>
      <version>3.2.0.cr1</version>
      <scope>compile</scope>
</dependency>
<dependency>
      <groupId>org.hibernate</groupId>
      <artifactId>hibernate-annotations</artifactId>
      <version>3.1beta9</version>
      <scope>compile</scope>
</dependency>
    


<reporting>
      ...
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-pmd-plugin</artifactId>
        <configuration>
          <linkXref>true</linkXref>
          <sourceEncoding>UTF-8</sourceEncoding>
          <minimumTokens>100</minimumTokens>
          <targetJdk>1.5</targetJdk>
        </configuration>
      </plugin>   
    ...
    </plugins>
</reporting>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to