[ https://jira.codehaus.org/browse/MCOMPILER-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=295664#comment-295664 ]
Parmendra Tyagi edited comment on MCOMPILER-75 at 4/3/12 8:53 AM: ------------------------------------------------------------------ I tried to using this enhancement. But there is a bug while using option proc. Here is same {code:xml} <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <proc>only</proc> <annotationProcessors> <annotationProcessor>com.annotation.processor.AnnotationProcessor</annotationProcessor> </annotationProcessors> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> {code} here i mentioned {code:xml} <proc>only</proc> {code}. i.e. it should not compile the code and should do the annotation processing only ( I also cross check this behavior with javac tool of Java 1.6 update 23), but while invoking command {noformat} mvn clean compile {noformat} , it compile the source code. which is not inline with specification was (Author: parmendratyagi): I tried to using this enhancement. But there is a bug while using option proc. Here is same {code:xml} <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <proc>only</proc> <excludes> <exclude>**/*.*</exclude> </excludes> <annotationProcessors> <annotationProcessor>com.annotation.processor.AnnotationProcessor</annotationProcessor> </annotationProcessors> <source>1.6</source> <target>1.6</target> </configuration> </plugin> </plugins> </build> {code} here i mentioned {code:xml} <proc>only</proc> {code}. i.e. it should not compile the code and should do the annotation processing only ( I also cross check this behavior with javac tool of Java 1.6 update 23), but while invoking command {noformat} mvn clean compile {noformat} , it compile the source code. which is not inline with specification > Add apt support for Java 6 > -------------------------- > > Key: MCOMPILER-75 > URL: https://jira.codehaus.org/browse/MCOMPILER-75 > Project: Maven 2.x Compiler Plugin > Issue Type: New Feature > Affects Versions: 2.0.2 > Reporter: Mark Hobson > Assignee: Milos Kleint > Fix For: 2.2 > > > Apt (Annotation Processing Tool) was merged into javac in Java 6. The > compiler plugin should support this new functionality, which means supporting > the following new arguments: > {noformat} > -proc:{none,only} Control whether annotation processing and/or > compilation is done. > -processor <class1>[,<class2>,<class3>...]Names of the annotation > processors to run; bypasses default discovery process > -processorpath <path> Specify where to find annotation processors > -s <directory> Specify where to place generated source files > -implicit:{none,class} Specify whether or not to generate class files > for implicitly referenced files > -Akey[=value] Options to pass to annotation processors > {noformat} > Note that this should supersede the Apt Maven Plugin at Mojo by encompassing > all of its functionality: > http://mojo.codehaus.org/apt-maven-plugin/index.html -- 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