[ http://jira.codehaus.org/browse/MNG-1901?page=all ]
Joakim Erdfelt updated MNG-1901:
--------------------------------
Attachment: MNG-1901.patch
> Report Classloaders out of sync when executed from within the site:site goal.
> -----------------------------------------------------------------------------
>
> Key: MNG-1901
> URL: http://jira.codehaus.org/browse/MNG-1901
> Project: Maven 2
> Type: Bug
> Components: Plugins and Lifecycle
> Versions: 2.0.1
> Reporter: Joakim Erdfelt
> Fix For: 2.0.2
> Attachments: MNG-1901.patch, dummy-maven-plugin.tar.bz2
>
>
> When testing the classloaders from within a mojo and a report the following
> is discovered.
> ## Direct Mojo execution from command line.
> mvn -e dummy:dump
> Thread.currentThread().getContextClassLoader() = RealmDelegatingClassLoader
> for dummy:dump.
> this.getClass().getClassLoader() = RealmClassLoader for dummy:dump.
> ## Report execution via site:site
> mvn -e site:site
> Thread.currentThread().getContextClassLoader() = RealmDelegatingClassLoader
> for site:site.
> this.getClass().getClassLoader() = RealmClassLoader for dummy:report.
> When a report is executing, relying on the
> Thread.currentThread().getContextClassLoader() to obtain resources out of jar
> files (for example) will fail.
> This discovery was as a result of debugging MCHECKSTYLE-10
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]