Issue Details (XML | Word | Printable)

Key: MCOMPILER-10
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Olivier Lamy
Reporter: John Casey
Votes: 32
Watchers: 16
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Compiler Plugin

display summary information including number of compiler errors when compiler plugin fails.

Created: 15/Dec/05 10:47 PM   Updated: 29/Jan/08 04:27 PM   Resolved: 29/Jan/08 04:27 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 2.1

Time Tracking:
Not Specified

File Attachments: 1. File logExample.bmp (807 kB)
2. Text File patch.txt (0.8 kB)



Jason van Zyl made changes - 19/Dec/05 10:36 PM
Field Original Value New Value
Component/s maven-compiler-plugin [ 11806 ]
Affects Version/s 2.0.1 [ 12000 ]
Project Maven 2 [ 10500 ] Maven 2.x Compiler Plugin [ 11130 ]
Type New Feature [ 2 ] Bug [ 1 ]
Key MNG-1854 MCOMPILER-10
Workflow Maven [ 43735 ] jira [ 44063 ]
Jason van Zyl made changes - 27/Dec/05 08:29 PM
Workflow jira [ 44063 ] Maven [ 44702 ]
Brett Porter made changes - 08/Mar/06 10:47 PM
Workflow Maven [ 44702 ] Maven New [ 51782 ]
yair567 added a comment - 01/Aug/07 09:09 AM

HI evry one
I tried to send mail to the mailing list but i got an eror
so here is my question

I new to maven

I try integration between eclipse and maven with my little project example but I got a Compilation error

The problem is that it not tell me what is the problem

These is what I got

[INFO] ----------------------------------------------------------------------------

[INFO] Building Unnamed - logging:logging:jar:0.0.1

[INFO] task-segment: [package]

[INFO] ----------------------------------------------------------------------------

[INFO] resources:resources

[INFO] Using default encoding to copy filtered resources.

[INFO] compiler:compile

[INFO] Compiling 3 source files to D:\ladpc\workspaces\ladpcApp\logging\target\classes

[ERROR] mojo-execute : compiler:compile

Diagnosis: Compilation failure

FATAL ERROR: Error executing Maven for a project

[ERROR] project-execute : logging:logging:jar:0.0.1 ( task-segment: [package] )

Diagnosis: Compilation failure

FATAL ERROR: Error executing Maven for a project

org.apache.maven.BuildFailureException: Compilation failure

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:454)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)

at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:441)

at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:382)

at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:68)

Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure

at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)

at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)

at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)

at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)

... 8 more

But what is the problem?

Here is my project tree

Thank you all

Yair


yair567 made changes - 01/Aug/07 09:09 AM
Attachment logExample.bmp [ 28739 ]
Thomas Hart added a comment - 09/Nov/07 05:22 AM

I had the same problem in the Maven Integration Plugin for Eclipse. The attached patch shows the compile error messages to the eclipse console. I don't know if this the right issue but it works for me.


Thomas Hart made changes - 09/Nov/07 05:22 AM
Attachment patch.txt [ 30479 ]
Milos Kleint added a comment - 09/Nov/07 05:31 AM

maybe something wrong with the eclipse embedder code? I'm getting this compilation output when running within netbeans.

[compiler:compile]
Compiling 5 source files to /home/mkleint/src/mevenide/mevenide2/netbeans/webframeworks/target/classes
------------------------------------------------------------------------
[ERROR]BUILD FAILURE
------------------------------------------------------------------------
Compilation failure

org/codehaus/mevenide/webframeworks/PanelSupportedFrameworksVisual.java.java:[376,39] cannot find symbol
symbol : variable JAVA_EE_SPEC_50_LABEL
location: class org.codehaus.mevenide.webframeworks.PanelSupportedFrameworksVisual

org/codehaus/mevenide/webframeworks/PanelSupportedFrameworksVisual.java.java:[379,39] cannot find symbol
symbol : variable J2EE_SPEC_14_LABEL
location: class org.codehaus.mevenide.webframeworks.PanelSupportedFrameworksVisual

org/codehaus/mevenide/webframeworks/PanelSupportedFrameworksVisual.java.java:[382,39] cannot find symbol
symbol : variable J2EE_SPEC_13_LABEL
location: class org.codehaus.mevenide.webframeworks.PanelSupportedFrameworksVisual
------------------------------------------------------------------------
Total time: 25 seconds
Finished at: Fri Nov 09 12:29:05 CET 2007
Final Memory: 130M/254M
------------------------------------------------------------------------


Ron Wheeler added a comment - 29/Jan/08 10:49 AM

It would seem that this is something everyone needs fixed and the fix is so small, it is hard to understand why it is not resolved at this time.
What is the hang-up?
Is there any disagreement about the severity, the nature of the problem or the applicability or robustness of the patch provided?


Olivier Lamy made changes - 29/Jan/08 04:23 PM
Assignee Olivier Lamy [ olamy ]
Olivier Lamy added a comment - 29/Jan/08 04:27 PM

fixed in rev 616544.


Olivier Lamy made changes - 29/Jan/08 04:27 PM
Resolution Fixed [ 1 ]
Fix Version/s 2.1 [ 12304 ]
Status Open [ 1 ] Closed [ 6 ]