[
http://jira.codehaus.org/browse/MOJO-1072?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Hobson updated MOJO-1072:
------------------------------
Attachment: MOJO-1072.patch
> Processors added to plugin dependencies cannot be found
> -------------------------------------------------------
>
> Key: MOJO-1072
> URL: http://jira.codehaus.org/browse/MOJO-1072
> Project: Mojo
> Issue Type: Bug
> Components: apt
> Reporter: Mark Hobson
> Attachments: MOJO-1072.patch
>
>
> The plugin doesn't pass dependencies declared in the plugin/dependency block
> to APT's -classpath.
> The attached patch fixes this. Unfortunately it duplicates some private code
> from MavenProject in order to obtain the plugin's classpath elements, I'm not
> aware of a nicer way of doing this.
> Also note that since the plugin's dependencies are in the mojo's classloader,
> if a tools.jar is brought in transitively via a processor then it must be
> excluded to avoid CCEs. For example:
> <plugin>
> <groupId>org.codehaus.mojo</groupId>
> <artifactId>apt-maven-plugin</artifactId>
> <dependencies>
> <dependency>
> <groupId>mygroup</groupId>
> <artifactId>myprocessor</artifactId>
> <version>1.0</version>
> <exclusions>
> <exclusion>
> <groupId>com.sun</groupId>
> <artifactId>tools</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> </dependencies>
> </plugin>
--
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
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email