This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-site.git
The following commit(s) were added to refs/heads/master by this push:
new f93ea20b add/fix links to resources
f93ea20b is described below
commit f93ea20b5a10d388303557362f682fe7d1f90a78
Author: Hervé Boutemy <[email protected]>
AuthorDate: Sat Jul 5 11:46:46 2025 +0200
add/fix links to resources
---
content/markdown/maven-di.md | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/content/markdown/maven-di.md b/content/markdown/maven-di.md
index 9dd66d78..a45f4e60 100644
--- a/content/markdown/maven-di.md
+++ b/content/markdown/maven-di.md
@@ -17,13 +17,13 @@ specific language governing permissions and limitations
under the License.
-->
-# Maven DI
+# Maven Dependency Injection (DI)
-## What is Maven DI?
+## What is Maven Dependency Injection (DI)?
-Maven DI is the dependency injection framework of Maven, that is introduced in
Maven 4.
+[Maven DI](/ref/4-LATEST/api/maven-api-di/index.html) is the dependency
injection framework of Maven, that is introduced in Maven 4.
-It is the successor for Plexus DI (used in Maven 2) and JSR 330/Eclipse Sisu
(used in Maven 3) in Maven.
+It is the successor for [Plexus
IoC](https://codehaus-plexus.github.io/plexus-containers/) (used in Maven 2)
and [JSR 330](/maven-jsr330.html)/[Eclipse Sisu](https://eclipse.dev/sisu/)
(used in Maven 3) in Maven.
## How to use Maven DI
@@ -34,15 +34,14 @@ The annotations of Maven DI are similar to JSR 330, but
they have different pack
TBD (need help)
-## How to use Maven DI in plugins
+## How to use Maven DI in Maven 4 plugins
---
**NOTE**
-If your plugin should also run with Maven 3.x, please look at [Maven &
JSR-330](maven-jsr330).
+If your plugin should also run with Maven 3.x, please look at [Maven &
JSR-330][maven-jsr330].
Plugins that are using Maven DI are only compatible with Maven 4.
------------------------------------------------------------------
Let's take a look at an example plugin: If you want to look at this example
project, you can find the code [in Maven Core ITs][maven-di-plugin].
@@ -304,8 +303,8 @@ If you want to mock your injected component, you have to
write a method that cre
This method has to be annotated with `@Singleton`, `@Provides` and
`@Priority(10)`, so that the DI framework selected it before the real component.
[guice]: https://github.com/google/guice
-[maven-jsr330]: maven-jsr330.html
+[maven-jsr330]: /maven-jsr330.html
[maven-di-plugin]:
https://github.com/apache/maven/tree/master/its/core-it-suite/src/test/resources/mng-8525-maven-di-plugin
-[maven-plugin-testing-harness]:
https://maven.apache.org/plugin-testing/maven-plugin-testing-harness/index.html
+[maven-plugin-testing-harness]:
/plugin-testing/maven-plugin-testing-harness/index.html
[junit-jupiter]: https://junit.org/junit5/