Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.
Stanley Hillner edited this page Jul 14, 2016 · 10 revisions

CDI-based Dependency Injection for Maven Plugin Development

The following pages will give a detailed overview over the basic concepts and their implementations as well as some usage examples and suggestions.

Usage

Simply add the following dependency to your Maven plugin and start implementing your Mojos.

<dependency>
  <groupId>com.itemis.maven.plugins</groupId>
  <artifactId>cdi-plugin-utils</artifactId>
  <version>3.1.0</version>
</dependency>

Your Mojos must extend the abstract class AbstractCDIMojo and must not override the method execute() since this method is implemented by the base class and which will bootstrap the dependency injection container at this point.

Where Next?

TODO: link to subpages!