You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Christoph Läubrich (Jira)" <ji...@apache.org> on 2022/05/13 08:13:00 UTC

[jira] [Created] (MNG-7479) Export the package org.apache.maven.eventspy

Christoph Läubrich created MNG-7479:
---------------------------------------

             Summary: Export the package org.apache.maven.eventspy
                 Key: MNG-7479
                 URL: https://issues.apache.org/jira/browse/MNG-7479
             Project: Maven
          Issue Type: Improvement
          Components: Core
    Affects Versions: 3.8.5
            Reporter: Christoph Läubrich


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.



--
This message was sent by Atlassian Jira
(v8.20.7#820007)