guice:run

Full name:

org.kuali.maven.plugins:guice-maven-plugin:1.0.0-SNAPSHOT:run

Description:

Create a Guice injector from the configured modules, get an instance of java.lang.Runnable from the injector, and run it

If no explicit modules are configured, look for a default module using groupId + artifactId after converting artifactId to camel case and appending the word Module. For example, the default module that would be loaded using this plugin's GAV information is:

org.kuali.maven.plugins.GuiceMavenPluginModule


Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.
  • Invokes the execution of this plugin's goal run prior to executing itself.

Optional Parameters

Name Type Since Description
annotation String - If supplied, the java.lang.Runnable must be injected using this annotation
User property is: guice.annotation.
module String - The Guice module to use when creating the injector. This comes after guice.modules (if any were supplied).
User property is: guice.module.
modules List - List of Guice modules to use when creating the injector. If supplied, these come before guice.module
User property is: guice.modules.

Parameter Details

annotation:

If supplied, the java.lang.Runnable must be injected using this annotation
  • Type: java.lang.String
  • Required: No
  • User Property: guice.annotation

module:

The Guice module to use when creating the injector. This comes after guice.modules (if any were supplied).
  • Type: java.lang.String
  • Required: No
  • User Property: guice.module

modules:

List of Guice modules to use when creating the injector. If supplied, these come before guice.module
  • Type: java.util.List
  • Required: No
  • User Property: guice.modules