Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-5206

plexus container never disposed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.3
    • 3.1.0-alpha-1
    • Plugin API
    • None

    Description

      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.

      Attachments

        1. plexusDisposeBug.zip
          2 kB
          Jan Sievers
        2. MNG-5206.patch
          6 kB
          Olivier Lamy
        3. MNG-5206.20111206.patch
          2 kB
          Stuart McCulloch

        Activity

          People

            olamy Olivier Lamy
            jan.sievers Jan Sievers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: