apache / apache/maven

[MNG-7479] Export the package org.apache.maven.eventspy

Open
#9,301 0 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Christoph Läubrich](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=laeubi)** opened **[MNG-7479](https://issues.apache.org/jira/browse/MNG-7479?redirect=false)** and commented

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.

---

**Affects:** 3.8.5

**Issue Links:**
- [MSHARED-650](https://issues.apache.org/jira/browse/MSHARED-650) Fire ExecutionEvent from DefaultMavenReportExecutor

**Remote Links:**
- [GitHub Pull Request #740
](https://github.com/apache/maven/pull/740)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.