You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Bernd Bohmann (JIRA)" <ji...@codehaus.org> on 2005/11/09 00:50:06 UTC

[jira] Created: (MNG-1469) pmd has problems with package-info.java.

pmd has problems with package-info.java.
----------------------------------------

         Key: MNG-1469
         URL: http://jira.codehaus.org/browse/MNG-1469
     Project: Maven 2
        Type: Bug
  Components: maven-pmd-plugin  
    Versions: 2.0    
 Environment: Ubuntu 5.10
    Reporter: Bernd Bohmann
    Priority: Minor
 Attachments: PmdReport.java.patch

pmd has problems with package-info.java. Please exclude package-info.java from report.

package-info.java can be used in place of package.html (which supports only comments, not annotations)

Please update to pmd version 3.3

Embedded error: Failure executing PMD for: 

myfaces/tobago/taglib/component/package-info.java
Encountered "package" at line 27, column 1.
Was expecting one of:
    "class" ...
    "final" ...
    "interface" ...
    <IDENTIFIER> ...
    "@" ...
    "public" ...
    "static" ...
    "protected" ...
    "private" ...
    "abstract" ...
    "synchronized" ...
    "native" ...
    "transient" ...
    "volatile" ...
    "strictfp" ...



-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPMD-2) pmd has problems with package-info.java.

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPMD-2?page=comments#action_56205 ] 

Bernd Bohmann commented on MPMD-2:
----------------------------------

With the patch it's works.

> pmd has problems with package-info.java.
> ----------------------------------------
>
>          Key: MPMD-2
>          URL: http://jira.codehaus.org/browse/MPMD-2
>      Project: Maven 2.x Pmd Plugin
>         Type: Bug

>  Environment: Ubuntu 5.10
>     Reporter: Bernd Bohmann
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 2.0-beta-1
>  Attachments: PmdReport.java.patch
>
>
> pmd has problems with package-info.java. Please exclude package-info.java from report.
> package-info.java can be used in place of package.html (which supports only comments, not annotations)
> Please update to pmd version 3.3
> Embedded error: Failure executing PMD for: 
> myfaces/tobago/taglib/component/package-info.java
> Encountered "package" at line 27, column 1.
> Was expecting one of:
>     "class" ...
>     "final" ...
>     "interface" ...
>     <IDENTIFIER> ...
>     "@" ...
>     "public" ...
>     "static" ...
>     "protected" ...
>     "private" ...
>     "abstract" ...
>     "synchronized" ...
>     "native" ...
>     "transient" ...
>     "volatile" ...
>     "strictfp" ...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Reopened: (MPMD-2) pmd has problems with package-info.java.

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPMD-2?page=all ]
     
Bernd Bohmann reopened MPMD-2:
------------------------------


I get the same error with the new version.

[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-pmd-plugin:2.0-beta-1:pmd' -->
...
Caused by: org.apache.maven.reporting.MavenReportException: Failure executing PMD for: /home/bommel/work/incubator-tobago/tobago-core/src/main/java/org/apache/myfaces/tobago/taglib/component/package-info.java
        at org.apache.maven.plugin.pmd.PmdReport.executeReport(PmdReport.java:269)
        at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
        at org.apache.maven.plugins.site.SiteMojo.generateReportsPages(SiteMojo.java:802)
        at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:301)
        ... 18 more
Caused by: net.sourceforge.pmd.ast.ParseException: Encountered "package" at line 27, column 1.
Was expecting one of:
    "class" ...
    "final" ...
    "interface" ...
    <IDENTIFIER> ...
    "@" ...
    "public" ...
    "static" ...
    "protected" ...
:
Please exclude package-info.java from report. 
A pmd report on package-info.java isn't useful.

> pmd has problems with package-info.java.
> ----------------------------------------
>
>          Key: MPMD-2
>          URL: http://jira.codehaus.org/browse/MPMD-2
>      Project: Maven 2.x Pmd Plugin
>         Type: Bug

>  Environment: Ubuntu 5.10
>     Reporter: Bernd Bohmann
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 2.0-beta-1
>  Attachments: PmdReport.java.patch
>
>
> pmd has problems with package-info.java. Please exclude package-info.java from report.
> package-info.java can be used in place of package.html (which supports only comments, not annotations)
> Please update to pmd version 3.3
> Embedded error: Failure executing PMD for: 
> myfaces/tobago/taglib/component/package-info.java
> Encountered "package" at line 27, column 1.
> Was expecting one of:
>     "class" ...
>     "final" ...
>     "interface" ...
>     <IDENTIFIER> ...
>     "@" ...
>     "public" ...
>     "static" ...
>     "protected" ...
>     "private" ...
>     "abstract" ...
>     "synchronized" ...
>     "native" ...
>     "transient" ...
>     "volatile" ...
>     "strictfp" ...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPMD-2) pmd has problems with package-info.java.

Posted by "darren hartford (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPMD-2?page=comments#action_53954 ] 

darren hartford commented on MPMD-2:
------------------------------------

verify issue with package-info.java.  Critical for EJB3-type projects.

Sample package-info.java:
=========================
@javax.persistence.NamedQueries(
{
  	@javax.persistence.NamedQuery(
			name="findAllTable",
			queryString="SELECT tbl FROM Table tbl"
	),
  	@javax.persistence.NamedQuery(
			name="findAllTable2",
			queryString="SELECT tbl FROM Table2 tbl"
	)

}
)
package my.package.ejb3;
===========================

verified against 2.0-alpha-2 release.

> pmd has problems with package-info.java.
> ----------------------------------------
>
>          Key: MPMD-2
>          URL: http://jira.codehaus.org/browse/MPMD-2
>      Project: Maven 2.x Pmd Plugin
>         Type: Bug

>  Environment: Ubuntu 5.10
>     Reporter: Bernd Bohmann
>     Priority: Minor
>  Attachments: PmdReport.java.patch
>
>
> pmd has problems with package-info.java. Please exclude package-info.java from report.
> package-info.java can be used in place of package.html (which supports only comments, not annotations)
> Please update to pmd version 3.3
> Embedded error: Failure executing PMD for: 
> myfaces/tobago/taglib/component/package-info.java
> Encountered "package" at line 27, column 1.
> Was expecting one of:
>     "class" ...
>     "final" ...
>     "interface" ...
>     <IDENTIFIER> ...
>     "@" ...
>     "public" ...
>     "static" ...
>     "protected" ...
>     "private" ...
>     "abstract" ...
>     "synchronized" ...
>     "native" ...
>     "transient" ...
>     "volatile" ...
>     "strictfp" ...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MPMD-2) pmd has problems with package-info.java.

Posted by "mike perham (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MPMD-2?page=comments#action_55255 ] 

mike perham commented on MPMD-2:
--------------------------------

The PMD plugin has been updated to use PMD 3.4.  Is this issue still relevant?

> pmd has problems with package-info.java.
> ----------------------------------------
>
>          Key: MPMD-2
>          URL: http://jira.codehaus.org/browse/MPMD-2
>      Project: Maven 2.x Pmd Plugin
>         Type: Bug

>  Environment: Ubuntu 5.10
>     Reporter: Bernd Bohmann
>     Priority: Minor
>  Attachments: PmdReport.java.patch
>
>
> pmd has problems with package-info.java. Please exclude package-info.java from report.
> package-info.java can be used in place of package.html (which supports only comments, not annotations)
> Please update to pmd version 3.3
> Embedded error: Failure executing PMD for: 
> myfaces/tobago/taglib/component/package-info.java
> Encountered "package" at line 27, column 1.
> Was expecting one of:
>     "class" ...
>     "final" ...
>     "interface" ...
>     <IDENTIFIER> ...
>     "@" ...
>     "public" ...
>     "static" ...
>     "protected" ...
>     "private" ...
>     "abstract" ...
>     "synchronized" ...
>     "native" ...
>     "transient" ...
>     "volatile" ...
>     "strictfp" ...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MPMD-2) pmd has problems with package-info.java.

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPMD-2?page=all ]
     
Brett Porter closed MPMD-2:
---------------------------

      Assign To: Brett Porter
     Resolution: Fixed
    Fix Version: 2.0-beta-1

should be fixed. Please reopen if reproducible.

> pmd has problems with package-info.java.
> ----------------------------------------
>
>          Key: MPMD-2
>          URL: http://jira.codehaus.org/browse/MPMD-2
>      Project: Maven 2.x Pmd Plugin
>         Type: Bug

>  Environment: Ubuntu 5.10
>     Reporter: Bernd Bohmann
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 2.0-beta-1
>  Attachments: PmdReport.java.patch
>
>
> pmd has problems with package-info.java. Please exclude package-info.java from report.
> package-info.java can be used in place of package.html (which supports only comments, not annotations)
> Please update to pmd version 3.3
> Embedded error: Failure executing PMD for: 
> myfaces/tobago/taglib/component/package-info.java
> Encountered "package" at line 27, column 1.
> Was expecting one of:
>     "class" ...
>     "final" ...
>     "interface" ...
>     <IDENTIFIER> ...
>     "@" ...
>     "public" ...
>     "static" ...
>     "protected" ...
>     "private" ...
>     "abstract" ...
>     "synchronized" ...
>     "native" ...
>     "transient" ...
>     "volatile" ...
>     "strictfp" ...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Closed: (MPMD-2) pmd has problems with package-info.java.

Posted by "Mike Perham (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MPMD-2?page=all ]
     
Mike Perham closed MPMD-2:
--------------------------

     Resolution: Fixed
    Fix Version:     (was: 2.0-beta-1)
                 2.0-beta-2

Patched.  Thanks Bernd.

> pmd has problems with package-info.java.
> ----------------------------------------
>
>          Key: MPMD-2
>          URL: http://jira.codehaus.org/browse/MPMD-2
>      Project: Maven 2.x Pmd Plugin
>         Type: Bug

>  Environment: Ubuntu 5.10
>     Reporter: Bernd Bohmann
>     Assignee: Brett Porter
>     Priority: Minor
>      Fix For: 2.0-beta-2
>  Attachments: PmdReport.java.patch
>
>
> pmd has problems with package-info.java. Please exclude package-info.java from report.
> package-info.java can be used in place of package.html (which supports only comments, not annotations)
> Please update to pmd version 3.3
> Embedded error: Failure executing PMD for: 
> myfaces/tobago/taglib/component/package-info.java
> Encountered "package" at line 27, column 1.
> Was expecting one of:
>     "class" ...
>     "final" ...
>     "interface" ...
>     <IDENTIFIER> ...
>     "@" ...
>     "public" ...
>     "static" ...
>     "protected" ...
>     "private" ...
>     "abstract" ...
>     "synchronized" ...
>     "native" ...
>     "transient" ...
>     "volatile" ...
>     "strictfp" ...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


[jira] Commented: (MNG-1469) pmd has problems with package-info.java.

Posted by "Bernd Bohmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1469?page=comments#action_51027 ] 

Bernd Bohmann commented on MNG-1469:
------------------------------------

patch included

> pmd has problems with package-info.java.
> ----------------------------------------
>
>          Key: MNG-1469
>          URL: http://jira.codehaus.org/browse/MNG-1469
>      Project: Maven 2
>         Type: Bug
>   Components: maven-pmd-plugin
>     Versions: 2.0
>  Environment: Ubuntu 5.10
>     Reporter: Bernd Bohmann
>     Priority: Minor
>  Attachments: PmdReport.java.patch
>
>
> pmd has problems with package-info.java. Please exclude package-info.java from report.
> package-info.java can be used in place of package.html (which supports only comments, not annotations)
> Please update to pmd version 3.3
> Embedded error: Failure executing PMD for: 
> myfaces/tobago/taglib/component/package-info.java
> Encountered "package" at line 27, column 1.
> Was expecting one of:
>     "class" ...
>     "final" ...
>     "interface" ...
>     <IDENTIFIER> ...
>     "@" ...
>     "public" ...
>     "static" ...
>     "protected" ...
>     "private" ...
>     "abstract" ...
>     "synchronized" ...
>     "native" ...
>     "transient" ...
>     "volatile" ...
>     "strictfp" ...

-- 
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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org