You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Gr?gory Joseph (JIRA)" <ji...@codehaus.org> on 2005/12/11 15:28:46 UTC
[jira] Commented: (MNG-1804) Can't load a class from a plugin, when
this class is in a user's pom/build/plugins/plugin/dependencies
[ http://jira.codehaus.org/browse/MNG-1804?page=comments#action_53220 ]
Grégory Joseph commented on MNG-1804:
-------------------------------------
Has apparently been fixed in current trunk. Even a simple Class.forName works, while jdcasey suggested his fix would have made the ThreadContextCL work. Cool.
> Can't load a class from a plugin, when this class is in a user's pom/build/plugins/plugin/dependencies
> ------------------------------------------------------------------------------------------------------
>
> Key: MNG-1804
> URL: http://jira.codehaus.org/browse/MNG-1804
> Project: Maven 2
> Type: Bug
> Components: Plugins and Lifecycle, Plugin API
> Versions: 2.0
> Reporter: Grégory Joseph
> Attachments: ihaveaproblemwithm2pluginsclassloading.tgz
>
>
> Ok, so here's my problem:
> A plugin needs to load classes. These are not in the plugin's own dependencies, because they're specified by users in the plugin configuration.
> Please see the attached sample that demonstrates this fails. The test.sh file first installs the dummy plugin then runs it.
> (I left a dependency on commons-collections in the plugin's pom, just because at first I thought it failed when class instanciated by the plugin depended on classes of the plugin's self dependencies, but it doesn't seem to be the case)
> For the record, I bumped into this when trying to make a maven2 plugin for xdoclet2 - which uses picocontainer to instanciate its own plugins.
> Cheers,
> g
--
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org