Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Code Block
langxml
<plugin>
  <groupId>org.apache.camel</groupId>
  <artifactId>guice-maven-pluginplugin</artifactId>
</plugin>

You can also specify what Main class to use when running the plugin. By default this is org.apache.camel.guice.Main.

Code Block
langxml
<plugin>
  <groupId>org.apache.camel</groupId>
  <artifactId>guice-maven-pluginplugin</artifactId>
  <!-- optional, default value: org.apache.camel.guice.Main -->
  <configuration>
    <mainClass>mypackage.boot.camel.CamelStartup</mainClass>
  </configuration>
</plugin>

...

Available as of Camel 2.13.0

In case you want to make use of an optional JNDI properties file, for example in case when the GuiceyFruit JNDI Provider is in use, then this is how you can specify itOptionally if the name of your JNDI properties file is something else other than the default jndi.properties or if it's not on the default classpath, then you can make use of the jndiProperties option as shown below:

Code Block
langxml
<plugin>
  <groupId>org.apache.camel</groupId>
  <artifactId>guice-maven-pluginplugin</artifactId>
  <configuration>
    <jndiProperties>/path/to/my/jndi/properties/my-guice-jndi.properties</jndiProperties>
  </configuration>
</plugin>

...

Code Block
langxml
<project>
  ...
  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.camel</groupId>
        <artifactId>guice-maven-pluginplugin</artifactId>
      </plugin>
    </plugins>
  </reporting>  
</project>

...