jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Plugin Tools
  • MPLUGIN-39

adding package-info.java breaks build

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Cannot Reproduce
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows XP, Java 5, maven 2.0.7

Description

As soon as I add a package-info.java file to the package of my mojo, the build breaks with the following output:

[INFO] [plugin:descriptor]
[INFO] Using 2 extractors.
[INFO] Applying extractor for language: java
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] 0
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.ArrayIndexOutOfBoundsException: 0
        at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor.getJavaClass(JavaMojoDescriptorExtractor.java:534)
        at org.apache.maven.tools.plugin.extractor.java.JavaMojoDescriptorExtractor.execute(JavaMojoDescriptorExtractor.java:553)
        at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:84)
        at org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:135)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Wed Oct 17 11:48:52 CEST 2007
[INFO] Final Memory: 4M/1016M
[INFO] ------------------------------------------------------------------------
  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. Text File
    MPLUGIN-39.patch
    26/Nov/07 9:16 AM
    0.5 kB
    Benjamin Bentmann
  • Options
    • Show All
    • Show Open

Sub-Tasks

1.
Add unit test Sub-task Closed Closed Vincent Siveton
 

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Benjamin Bentmann added a comment - 26/Nov/07 9:16 AM

I can confirm this bug for maven-plugin-tools-java-2.1. However, the bug seems to have been fixed already in SVN (by applying MNG-2930.diff): I built from the current trunk and it work.

The attached patch adds a package-info.java to one of the existing unit tests and should serve as a regression test for this issue.

Show
Benjamin Bentmann added a comment - 26/Nov/07 9:16 AM I can confirm this bug for maven-plugin-tools-java-2.1. However, the bug seems to have been fixed already in SVN (by applying MNG-2930.diff): I built from the current trunk and it work. The attached patch adds a package-info.java to one of the existing unit tests and should serve as a regression test for this issue.
Hide
Permalink
Vincent Siveton added a comment - 19/Jan/08 10:00 PM

Cannot reproduce on trunk

Show
Vincent Siveton added a comment - 19/Jan/08 10:00 PM Cannot reproduce on trunk
Hide
Permalink
Kedar Mhaswade added a comment - 22/Feb/08 9:44 PM

I can reproduce this issue on maven build 2.0.7 with Mac OS X.

Show
Kedar Mhaswade added a comment - 22/Feb/08 9:44 PM I can reproduce this issue on maven build 2.0.7 with Mac OS X.

People

  • Assignee:
    Unassigned
    Reporter:
    Florian Kleedorfer
Vote (1)
Watch (0)

Dates

  • Created:
    17/Oct/07 8:25 AM
    Updated:
    03/Dec/11 7:00 PM
    Resolved:
    19/Jan/08 10:00 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.