[
http://jira.codehaus.org/browse/MCOMPILER-75?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=215901#action_215901
]
Mark Hobson commented on MCOMPILER-75:
--------------------------------------
I mentioned this on the list, but we could use the plugin's dependencies as the
processor path. This is how the apt-maven-plugin [currently
works|http://mojo.codehaus.org/apt-maven-plugin/examples/configuring-a-factory.html].
Alternatively, to support different usages of plugin dependencies we could
specify them using their GAV, like the
[maven-shade-plugin|http://maven.apache.org/plugins/maven-shade-plugin/examples/includes-excludes.html].
For example:
{code:xml}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<bootArtifacts>
<bootArtifact>myGroup:myLibrary</bootArtifact>
</bootArtifacts>
<processorArtifacts>
<processorArtifact>myGroup:myProcessor</processorArtifact>
</processorArtifacts>
</configuration>
<dependencies>
<dependency>
<groupId>myGroup</groupId>
<artifactId>myLibrary</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>myGroup</groupId>
<artifactId>myProcessor</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
</plugin>
{code}
> Add apt support for Java 6
> --------------------------
>
> Key: MCOMPILER-75
> URL: http://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 contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira