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

Export the package org.apache.maven.eventspy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.8.5
    • None
    • Core
    • None

    Description

      I'm currently try to fetch a specific EventSpy to inject an event there (maven-profiler).

      Sadly in my maven plugin when I try to get it injected:

       @Requirement(role = EventSpy.class, hint = "profiler", optional = true)
       EventSpy eventSpy;

      This results in ClassNotFoundException: org.apache.maven.eventspy.EventSpy

      I noticed that the maven-core do not export the 'org.apache.maven.eventspy' package and that is the cause of this, I'd like to suggest to export the package as there seem no other standard way to interact/access event spys otherwise.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              laeubi Christoph Läubrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: