[ https://issues.apache.org/jira/browse/MCOMPILER-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14697398#comment-14697398 ]
Hervé Boutemy commented on MCOMPILER-249: ----------------------------------------- ok, I was able to reproduce the issue: I moved the issue to MCOMPILER, since you problem is with compile I ran {{mvn -X compile}} to check if the problem was in javac compiler or in maven-compiler-plugin I launched the javac command by hand, and it did not produce output, nor failure I tried with JDK8, which cleanly fails Then I'll close the issue as "not a bug": the bug is in javac compiler from JDK7, fixed in JDK8 > Maven gives successful Build message and creates empty jar and fails to find > compile time issues. > --------------------------------------------------------------------------------------------------- > > Key: MCOMPILER-249 > URL: https://issues.apache.org/jira/browse/MCOMPILER-249 > Project: Maven Compiler Plugin > Issue Type: Bug > Affects Versions: 3.2, 3.3 > Environment: apache-maven-3.2.3, jdk1.7.0_67, Eclipse Kepler, WIndows7 > Reporter: vijay > Labels: build, maven > Attachments: AnnotationConsumer.zip, > CustomAnnotations-0.0.1-SNAPSHOT.zip, CustomAnnotations.zip > > > I have created one maven project "AnnotationConsumer" which uses custom > annotation "@COBDate". This custom annotation is present in another maven > project "CustomAnnotations". Now the customannotation jar is empty and does > not contain any annotations. So ideally build of project "AnnotationConsumer" > should have been failed with error message like COBDate not found or > compilation fails. But the thing is that in eclipse Maven Build run it > completes successfully without any error message and creates empty jar file > AnnotationConsumer.jar. > I tried to build project "AnnotationConsumer" from command prompt also with > the same result. > This looks major issue because build creates empty jar but gives successful > build message, creating confusion. -- This message was sent by Atlassian JIRA (v6.3.4#6332)