You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Trevor Harmon (JIRA)" <ji...@codehaus.org> on 2008/08/28 15:03:48 UTC

[jira] Created: (MNG-3733) Duplicate compiler errors

Duplicate compiler errors
-------------------------

                 Key: MNG-3733
                 URL: http://jira.codehaus.org/browse/MNG-3733
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.7
            Reporter: Trevor Harmon
            Priority: Minor


I often get duplicate Java compiler errors when building with Maven. Here's how to reproduce:

mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app

Then change App.java to this:

package com.mycompany.app;
interface Foo {
      void bar();
}
public class App implements Foo {}

Running "mvn compile" at this point produces:

...
[INFO] Compilation failure
/Users/trevor/Desktop/test/maven/my-app/src/main/java/com/mycompany/app/App.java:[7,7] com.mycompany.app.App is not abstract and does not override abstract method bar() in com.mycompany.app.Foo
/Users/trevor/Desktop/test/maven/my-app/src/main/java/com/mycompany/app/App.java:[7,7] com.mycompany.app.App is not abstract and does not override abstract method bar() in com.mycompany.app.Foo
...

Compiling the same code with javac gives only one.

Seems like a bug in Maven itself. It is logging both the exception and the nested compile exception (shown by running with -e). It should just show the actual failure.



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

        

[jira] Closed: (MCOMPILER-89) Duplicate compiler errors

Posted by "Robert Scholte (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/MCOMPILER-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Scholte closed MCOMPILER-89.
-----------------------------------

    Resolution: Cannot Reproduce

The affected version is missing so I've tried several versions of the plugin. I wasn't able to reproduce it.
I don't think the bug will occur again since with MCOMPILER-118 the logging of these messages has changed.

> Duplicate compiler errors
> -------------------------
>
>                 Key: MCOMPILER-89
>                 URL: https://jira.codehaus.org/browse/MCOMPILER-89
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>            Reporter: Trevor Harmon
>            Priority: Minor
>
> I often get duplicate Java compiler errors when building with Maven. Here's how to reproduce:
> mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app
> Then change App.java to this:
> package com.mycompany.app;
> interface Foo {
>       void bar();
> }
> public class App implements Foo {}
> Running "mvn compile" at this point produces:
> ...
> [INFO] Compilation failure
> /Users/trevor/Desktop/test/maven/my-app/src/main/java/com/mycompany/app/App.java:[7,7] com.mycompany.app.App is not abstract and does not override abstract method bar() in com.mycompany.app.Foo
> /Users/trevor/Desktop/test/maven/my-app/src/main/java/com/mycompany/app/App.java:[7,7] com.mycompany.app.App is not abstract and does not override abstract method bar() in com.mycompany.app.Foo
> ...
> Compiling the same code with javac gives only one.
> Seems like a bug in Maven itself. It is logging both the exception and the nested compile exception (shown by running with -e). It should just show the actual failure.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Moved: (MCOMPILER-89) Duplicate compiler errors

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCOMPILER-89?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MNG-3733 to MCOMPILER-89:
--------------------------------------------

    Affects Version/s:     (was: 2.0.7)
                  Key: MCOMPILER-89  (was: MNG-3733)
              Project: Maven 2.x Compiler Plugin  (was: Maven 2)

> Duplicate compiler errors
> -------------------------
>
>                 Key: MCOMPILER-89
>                 URL: http://jira.codehaus.org/browse/MCOMPILER-89
>             Project: Maven 2.x Compiler Plugin
>          Issue Type: Bug
>            Reporter: Trevor Harmon
>            Priority: Minor
>
> I often get duplicate Java compiler errors when building with Maven. Here's how to reproduce:
> mvn archetype:create -DarchetypeGroupId=org.apache.maven.archetypes -DgroupId=com.mycompany.app -DartifactId=my-app
> Then change App.java to this:
> package com.mycompany.app;
> interface Foo {
>       void bar();
> }
> public class App implements Foo {}
> Running "mvn compile" at this point produces:
> ...
> [INFO] Compilation failure
> /Users/trevor/Desktop/test/maven/my-app/src/main/java/com/mycompany/app/App.java:[7,7] com.mycompany.app.App is not abstract and does not override abstract method bar() in com.mycompany.app.Foo
> /Users/trevor/Desktop/test/maven/my-app/src/main/java/com/mycompany/app/App.java:[7,7] com.mycompany.app.App is not abstract and does not override abstract method bar() in com.mycompany.app.Foo
> ...
> Compiling the same code with javac gives only one.
> Seems like a bug in Maven itself. It is logging both the exception and the nested compile exception (shown by running with -e). It should just show the actual failure.

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