You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tony Chemit (JIRA)" <ji...@codehaus.org> on 2012/07/10 21:54:21 UTC

[jira] (MPLUGIN-221) DefaultMojoAnnotationsScanner fails to scan some dependencies

Tony Chemit created MPLUGIN-221:
-----------------------------------

             Summary: DefaultMojoAnnotationsScanner fails to scan some dependencies
                 Key: MPLUGIN-221
                 URL: https://jira.codehaus.org/browse/MPLUGIN-221
             Project: Maven 2.x Plugin Tools
          Issue Type: Bug
          Components: maven-plugin-tools-annotations
    Affects Versions: 3.1
            Reporter: Tony Chemit


there is some dependencies which fails on scan, for example 

{code}
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
{code}

Will cause this error (I add a log comment to obtain bad class): 

{code}
[ERROR] Error while analyzing class com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class
java.lang.ArrayIndexOutOfBoundsException: 48188
	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
	at org.objectweb.asm.ClassReader.accept(Unknown Source)
	at org.objectweb.asm.ClassReader.accept(Unknown Source)
	at org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner.scanFile(DefaultMojoAnnotationsScanner.java:141)
	at org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner.scan(DefaultMojoAnnotationsScanner.java:85)
	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.scanAnnotations(JavaAnnotationsMojoDescriptorExtractor.java:125)
	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.execute(JavaAnnotationsMojoDescriptorExtractor.java:104)
	at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:108)
	at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:233)
	at org.apache.maven.plugin.plugin.DescriptorGeneratorMojo.execute(DescriptorGeneratorMojo.java:82)

{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] (MPLUGIN-221) DefaultMojoAnnotationsScanner fails to scan some dependencies

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MPLUGIN-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MPLUGIN-221.
---------------------------------

    Resolution: Not A Bug
      Assignee: Herve Boutemy

as written in MPIR-142
{quote}it's a known bug in icu4j 2.6: see [ticket #6505|http://icu-project.org/trac/ticket/6505], which shows the problem wihtout Maven or bcel but directly a JVM
marked as fixed in icu4j 2.8: see [ticket #3209|http://icu-project.org/trac/ticket/3209]{quote}
                
> DefaultMojoAnnotationsScanner fails to scan some dependencies
> -------------------------------------------------------------
>
>                 Key: MPLUGIN-221
>                 URL: https://jira.codehaus.org/browse/MPLUGIN-221
>             Project: Maven 2.x Plugin Tools
>          Issue Type: Bug
>          Components: maven-plugin-tools-annotations
>    Affects Versions: 3.1
>            Reporter: Tony Chemit
>            Assignee: Herve Boutemy
>
> there is some dependencies which fails on scan, for example 
> {code}
> <groupId>com.ibm.icu</groupId>
> <artifactId>icu4j</artifactId>
> {code}
> Will cause this error (I add a log comment to obtain bad class): 
> {code}
> [ERROR] Error while analyzing class com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class
> java.lang.ArrayIndexOutOfBoundsException: 48188
> 	at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> 	at org.objectweb.asm.ClassReader.accept(Unknown Source)
> 	at org.objectweb.asm.ClassReader.accept(Unknown Source)
> 	at org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner.scanFile(DefaultMojoAnnotationsScanner.java:141)
> 	at org.apache.maven.tools.plugin.annotations.scanner.DefaultMojoAnnotationsScanner.scan(DefaultMojoAnnotationsScanner.java:85)
> 	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.scanAnnotations(JavaAnnotationsMojoDescriptorExtractor.java:125)
> 	at org.apache.maven.tools.plugin.annotations.JavaAnnotationsMojoDescriptorExtractor.execute(JavaAnnotationsMojoDescriptorExtractor.java:104)
> 	at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:108)
> 	at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:233)
> 	at org.apache.maven.plugin.plugin.DescriptorGeneratorMojo.execute(DescriptorGeneratorMojo.java:82)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira