History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: MNG-1804
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Grégory Joseph
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2

Can't load a class from a plugin, when this class is in a user's pom/build/plugins/plugin/dependencies

Created: 10/Dec/05 06:39 PM   Updated: 21/Feb/06 05:19 AM
Component/s: Plugins and Lifecycle, Plugin API
Affects Version/s: 2.0
Fix Version/s: 2.0.1

Time Tracking:
Not Specified

File Attachments: 1. File ihaveaproblemwithm2pluginsclassloading.tgz (2 kb)

Issue Links:
Related
 

Complexity: Intermediate


 Description  « Hide
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



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Grégory Joseph - 11/Dec/05 08:28 AM
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.