You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Olivier Lamy (JIRA)" <ji...@codehaus.org> on 2011/12/07 23:55:39 UTC

[jira] Closed: (MNG-5206) plexus container never disposed

     [ https://jira.codehaus.org/browse/MNG-5206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olivier Lamy closed MNG-5206.
-----------------------------

    Resolution: Fixed
      Assignee: Olivier Lamy

fixed r1211692.
Thanks!

> plexus container never disposed
> -------------------------------
>
>                 Key: MNG-5206
>                 URL: https://jira.codehaus.org/browse/MNG-5206
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Plugin API
>    Affects Versions: 3.0.3
>            Reporter: Jan Sievers
>            Assignee: Olivier Lamy
>             Fix For: 3.0.5
>
>         Attachments: MNG-5206.20111206.patch, MNG-5206.patch, plexusDisposeBug.zip
>
>
> When I use a plexus component which implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Disposable, dispose() is never called.
> Since maven is creating the plexus container, it should also dispose it (on maven session end?).
> Also see discussion on sisu-dev: http://dev.eclipse.org/mhonarc/lists/sisu-dev/msg00001.html
> Attached sample project demonstrates the issue.
> Steps to reproduce:
> 1. 'mvn install' sample project
> 2. Use the test mojo: 'mvn org.apache.maven.plugins.test:plexusDisposeBug:0.0.1-SNAPSHOT:test'
> => plexus component is injected but never disposed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira