Registry / build-tool / maven-plugin-api

maven-plugin-api

JSON →
library3.9.15javamavenunverified

Provides the API for developing Maven 3 plugins (Mojo) with annotations and interfaces.

<dependency> <groupId>org.apache.maven</groupId> <artifactId>maven-plugin-api</artifactId> <version>3.9.15</version> </dependency>
INSTALL
IMPORT
SIG · MAVEN-PLUGIN-API
M
maven-plugin-api
build-tooljavav3.9.15
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mojo
org.apache.maven.plugins.annotations.Mojo

Demonstrates a minimal Maven Mojo implementation.

import org.apache.maven.plugins.annotations.Mojo; import org.apache.maven.plugins.annotations.LifecyclePhase; @Mojo(name = "example", defaultPhase = LifecyclePhase.PACKAGE) public class ExampleMojo extends AbstractMojo { public void execute() { getLog().info("Hello from Maven plugin!"); } }
Debug
Known issues
breakingMaven 3.x API is not binary compatible with Maven 2.x; plugins must target Maven 3.
fix
Ensure your plugin depends on Maven 3.x API and uses Maven 3 annotations.
affects: >=3.0.0
Upgrade
Version history
3.9.15latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
maven-plugin-api — mvn dependency:get maven-plugin-api · libregistry