You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Vincent Siveton (JIRA)" <ji...@codehaus.org> on 2006/02/02 03:10:12 UTC
[jira] Commented: (MSITE-60) Report Classloaders out of sync when
executed from within the site:site goal.
[ http://jira.codehaus.org/browse/MSITE-60?page=comments#action_57591 ]
Vincent Siveton commented on MSITE-60:
--------------------------------------
I tried your dummy project with site goal (from trunk) and m2 2.0.2. All sounds good for me.
Do you think that we could close this issue?
> Report Classloaders out of sync when executed from within the site:site goal.
> -----------------------------------------------------------------------------
>
> Key: MSITE-60
> URL: http://jira.codehaus.org/browse/MSITE-60
> Project: Maven 2.x Site Plugin
> Type: Bug
> Reporter: Joakim Erdfelt
> Priority: Critical
> Fix For: 2.0
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org