Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cyrille-leclerc/maven-extension-test


https://github.com/cyrille-leclerc/maven-extension-test

Last synced: 6 days ago
JSON representation

Awesome Lists containing this project

README

        

# Maven Extension Test

Test the differences of behavior of Maven Extension APIs between Plexus and JSR-330/Sisu

Maven Extension APIMaven EventExtension loading mechanism

${maven.home}/lib/extmvn -Dmaven.ext.class.path=pom.xml's <extensions>.mvn/extensions.xml


JSR330AbstractExecutionListener 🔴 🔴 🔴 🔴

JSR330AbstractMavenLifecycleParticipant#afterSessionStart 🟢 🟢 🔴 🟢

JSR330AbstractMavenLifecycleParticipant#afterProjectsRead 🟢 🟢 🟢 🟢

JSR330AbstractMavenLifecycleParticipant#afterSessionEnd 🟢 🟢 🟢 🟢

JSR330AbstractEventSpy#init 🟢 🟢 🔴 🟢

JSR330AbstractEventSpy#onEvent 🟢 🟢 🔴 🟢

JSR330AbstractEventSpy#close 🟢 🟢 🔴 🟢


PlexusAbstractExecutionListener 🔴 🔴 🔴 🔴

PlexusAbstractMavenLifecycleParticipant#afterSessionStart 🟢 🟢 🔴 🟢

PlexusAbstractMavenLifecycleParticipant#afterProjectsRead 🟢 🟢 🟢 🟢

PlexusAbstractMavenLifecycleParticipant#afterSessionEnd 🟢 🟢 🟢 🟢

PlexusAbstractEventSpy#init 🟢 🟢 🔴 🟢

PlexusAbstractEventSpy#onEvent 🟢 🟢 🔴 🟢

PlexusAbstractEventSpy#close 🟢 🟢 🔴 🟢

* Documentation
* https://maven.apache.org/maven-jsr330.html
* https://github.com/eclipse/sisu.plexus/wiki/Plexus-to-JSR330
* The maven-sisu-plugin with `@Named` and `@Inject` just generates `META-INF/sisu/javax.inject.Named`
* When in the past, the `plexus-component-metadata:generate-metadata` did generate `META-INF/plexus/components.xml`
* Don't forget to update `META-INF/maven/extension.xml`, see https://maven.apache.org/ref/3.9.6/maven-core/extension.html